Skip to content

Instantly share code, notes, and snippets.


Bassam Helal basshelal

Block or report user

Report or block basshelal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
basshelal / EditTextView.kt
Created Feb 20, 2019
Editable Text View for Android
View EditTextView.kt
package uk.whitecrescent.waqti.frontend.customview
import android.content.Context
import android.os.Build
import android.text.InputType
import android.util.AttributeSet
import android.view.View
import androidx.appcompat.widget.AppCompatEditText
basshelal / isEditable.ts
Created Jun 3, 2019
Check whether a node is editable or not in TypeScript
View isEditable.ts
* Checks whether the passed in node is editable or not.
* An editable node is one that returns true to isContentEditable or has a tag name as
* any one of the following:
* "textarea", "input", "text", "email", "number", "search", "tel", "url", "password"
* @param node the node to check
* @return true if the node is editable and false otherwise
function isEditable(node: Node): boolean {
You can’t perform that action at this time.