diff --git a/node-jose/index.d.ts b/node-jose/index.d.ts
new file mode 100644
index 0000000000..93ae198493
--- /dev/null
+++ b/node-jose/index.d.ts
@@ -0,0 +1,1380 @@
+// Type definitions for node-jose v0.9.3
+// Project: https://github.com/cisco/node-jose
+// Definitions by: Jason Burns
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// TypeScript Version: 2.2
+
+// Most of this documentation comes directly from the excellently documented
+// node-jose package, with only a bit added in to explain intermediate types.
+// It should currently be considered a wip, as I created it for a personal
+// project, but have not spent the necessary time to make it feature complete.
+// Uses 'object' so requires tsc >2.2
+
+///
+
+/**
+ * Exposes all implemented algorithms through a common interface comprised of
+ * six primary 'action' functions.
+ */
+export module JWA {
+
+ /**
+ * Options that can be given to the decrypt function. Additional data can be
+ * passed in with `aad` or `adata` (`aad` will take precedence if both are given),
+ * an initialization vector with `iv`, and an authentication tag or code with
+ * `tag` or `mac` (`tag` will take precedence).
+ */
+ type decryptEncryptOptions = {
+ aad?: Buffer,
+ adata?: Buffer,
+ iv?: Buffer,
+ tag?: Buffer, // Not used in encrypt
+ mac?: Buffer, // Not used in encrypt
+ epu?: Buffer, // encryption party info
+ epv?: Buffer, // encryption party info
+ kdata?: Buffer,
+ epk?: Buffer, // ephemeral pub key used in ec
+ enc?: string, // algorithm to use in ec
+ alg?: string, // variation of enc, probably oversight in lib code
+ apu?: Buffer, // agreement party info used in ec
+ apv?: Buffer, // agreement party info used in ec
+ p2s?: Buffer, // used in pbes
+ p2c?: number // used in pbes
+ };
+
+ /**
+ * Options that can be given to the derive functions. Some options are only viable
+ * for certain algorithms. Future doc will expand these use cases.
+ */
+ type deriveOptions = {
+ length?: number, // key length
+ otherInfo?: Buffer, // info used in concatkdf
+ public?: Buffer, // public key used in ecdh
+ hash?: Buffer, // hash used in ecdh
+ salt?: Buffer, // salt value used in hkdf
+ info?: Buffer, // app identifier info used in hkdf
+ };
+
+ /**
+ * Options used for all sign algorithms.
+ */
+ type signVerifyOptions = { loose?: boolean }; // used in hmac algo
+
+ /**
+ * The object that is returned from encrypt options. Some algorithms return a
+ * tag value, so a simple buffer cannot be used here.
+ */
+ type encryptReturn = {
+ data: Buffer, // The cipher text
+ tag?: Buffer // The tag used in some algorithms
+ }
+
+ /**
+ * Return object for sign functions. The data is replicated into the return for
+ * ease of use.
+ */
+ type signReturn = {
+ data: Buffer, // the data passed into the sign function
+ mac: Buffer // the signature for `data`
+ }
+
+ /**
+ * Return object for verify functions. The data and mac are replicated into the
+ * return for ease of use.
+ */
+ type verifyReturn = {
+ data: Buffer, // the data passed into the verify function
+ mac: Buffer, // the signature for `data`
+ valid: boolean // whether the signature matches the data
+ }
+
+ /**
+ * Run the decryption algorithm given by `alg`, if it is supported in the current
+ * implementation.
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} key The decryption key
+ * @param {(string | Buffer)} cdata The ciphertext
+ * @param {decryptOptions} [props] Any of the allowed decryption options given in `JWA.decryptEncryptOptions`
+ * @returns {Promise} A buffer with the plain text.
+ */
+ function decrypt(alg: string, key: string | Buffer, cdata: string | Buffer, props?: decryptEncryptOptions): Promise;
+
+ /**
+ * Derive a new cryptographically strong key from weaker key material, using `alg` if it is
+ * implemented
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} key The weak key material
+ * @param {deriveOptions} props Options to be used by algorithm, defined in `JWA.deriveOptions`.
+ * @returns {Promise} The stronger key material
+ */
+ function derive(alg: string, key: string | Buffer, props?: deriveOptions): Promise;
+
+ /**
+ * Create a hash of `data` using the algorithm `alg` if implemented.
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} data The data to hash
+ * @param {*} props Unused at this time, left for future implementations
+ * @returns {Promise} The hash
+ */
+ function digest(alg: string, data: string | Buffer, props?: any): Promise;
+
+ /**
+ * Run the encryption algorithm given by `alg`, if it is supported by the implementation.
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} key The encryption key
+ * @param {(string | Buffer)} pdata The plaintext
+ * @param {encryptOptions} props Options used by the specified algorithm in `JWA.decryptEncryptOptions`.
+ * @returns {Promise} The ciphertext in `data` field, `tag` field included if in algorithm.
+ */
+ function encrypt(alg: string, key: string | Buffer, pdata: string | Buffer, props?: decryptEncryptOptions): Promise;
+
+ /**
+ * Sign `pdata` with the request algorithm if supported.
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} key The signing key
+ * @param {(string | Buffer)} pdata The data to add integrity to
+ * @param {signOptions} props Options used by the algorithm as defined in `JWA.signVerifyOptions`
+ * @returns {Promise} The signature is in the `mac` field.
+ */
+ function sign(alg: string, key: string | Buffer, pdata: string | Buffer, props: signVerifyOptions): Promise;
+
+ /**
+ * Verify the data in `pdata` is valid by using `key` and `mac`.
+ *
+ * @param {string} alg The algorithm to use
+ * @param {(string | Buffer)} key The verifying key
+ * @param {(string | Buffer)} pdata The signed data to verify
+ * @param {(string | Buffer)} mac The signature as previously returned via the `sign` function
+ * @param {signVerifyOptions} props Options used by the algorithm as defined in `JWA.signVerifyOptions`
+ * @returns {Promise;
+}
+
+/**
+ * Contains all the encrypton tools for JWTs.
+ */
+export module JWE {
+
+ /**
+ * Used to customize decryption processes. The following options are currently
+ * supported:
+ *
+ * @property {} handlers An object where each name is a JOSE header member name and
+ * the value can be a boolean, function, or an object.
+ *
+ * Handlers are intended to support 'crit' extensions. When a boolean value,
+ * the member is expected to be processed once decryption is fully complete.
+ * When a function, it is called just before the ciphertext is decrypted
+ * (processed as if it were a `prepare` handler, as decribed in `decryptCritProcessors`).
+ * Note that normal processing of `decrypt()` does not continue until all
+ * relevant handlers have completed. Any changes handlers make to the
+ * provided objects affects `decrypt()`'s processing.
+ */
+ type decryptCritHeaderOptions = {
+ handlers: { [crit_header: string]: boolean | Function | decryptCritProcessors }
+ };
+
+ /**
+ * For the critical header processing, the options may include an object like this,
+ * which defines these fields to run at various times of decryption processing.
+ * @property {Function} recipient A function called after a valid key is
+ * determined; it takes an object describing the recipient, and
+ * returns a Promise that is fulfilled once the handler's processing
+ * is complete.
+ * @property {Function} prepare A function called just prior to decrypting
+ * the ciphertext; it takes an object describing the decryption
+ * result (but containing `ciphertext` and `tag' instead of `payload`
+ * and `plaintext`), and returns a Promise that is fulfilled once
+ * the handler's processing is complete.
+ * @property {Function} complete A function called once decryption is complete,
+ * just prior to fulfilling the Promise returned by `decrypt()`; it
+ * takes the object that will be returned by `decrypt()`'s fulfilled
+ * Promise, and returns a Promise that is fulfilled once the handler's
+ * processing is complete.
+ */
+ type decryptCritProcessors = {
+ recipient?: Function,
+ prepare?: Function,
+ complete?: Function
+ };
+
+ /**
+ * Object that defines the output that is given from the `decrypt()` function
+ * of a `Decryptor`.
+ *
+ * @property {any} header The JOSE Header, combined from the relevant "header" and
+ * "protected" fields from the original JWE object.
+ * @property {string[]} protected An array containing the names of the protected fields
+ * @property {JWK.Key} key The used to decrypt the content
+ * @property {Buffer} payload The decrypted content (as a Buffer)
+ * @property {Buffer} plaintext An alias for `payload`
+ */
+ type decryptReturn = {
+ header: any,
+ protected: string[],
+ key: JWK.Key,
+ payload: Buffer,
+ plaintext: Buffer
+ };
+
+ /**
+ * The options for {@link createEncrypt}.
+ *
+ * @property {boolean|string} zip Determines the compression algorithm to
+ * apply to the plaintext (if any) before it is encrypted. This can
+ * also be `true` (which is equivalent to `"DEF"`) or **`false`**
+ * (the default, which is equivalent to no compression).
+ * @property {string} format Determines the serialization format of the
+ * output. Expected to be `"general"` for general JSON
+ * Serialization, `"flattened"` for flattened JSON Serialization,
+ * or `"compact"` for Compact Serialization (default is
+ * **`"general"`**).
+ * @property {boolean} compact Determines if the output is the Compact
+ * serialization (`true`) or the JSON serialization (**`false`**,
+ * the default).
+ * @property {string} contentAlg The algorithm used to encrypt the plaintext
+ * (default is **`"A128CBC-HS256"`**).
+ * @property {string|string[]} protect The names of the headers to integrity
+ * protect. The value `""` means that none of the header parameters
+ * are integrity protected, while `"*"` (the default) means that all
+ * header parameters are integrity protected.
+ * @property {object} fields Any extra fields to include in the JWT.
+ * @property {string} aad Additional authenticated data to include
+ * @property {string} cek A content encryption key for the underlying algorithm
+ * @property {string} iv An init vector for the underlying algorithm.
+ */
+ type encOpts = {
+ zip?: boolean | string,
+ format?: string,
+ compact?: boolean,
+ contentAlg?: string,
+ protect?: string | string[],
+ fields?: any,
+ aad?: string,
+ cek?: string,
+ iv?: string
+ };
+
+ /**
+ * Factory function that reates a new Decrypter for the given Key or KeyStore.
+ *
+ * @param {(JWK.KeyStore|JWK.Key)} ks The Key or KeyStore to use for decryption.
+ * @param {decryptCritHeaderOptions} [opts] The options for this decryptor.
+ * @returns {Decrypter} The new Decryptor.
+ */
+ function createDecrypt(ks: JWK.KeyStore | JWK.Key, opts?: decryptCritHeaderOptions): Decrypter;
+
+ /**
+ * Factory function to create `Encrypter`s. See doc for opts and return for more info.
+ *
+ * @param {enc_opts} opts The options used to create the Encrypter.
+ * @param {(JWK.Key|JWK.Key[]|{key: JWK.Key}|{key: JWK.Key}[])} rcpts The recipient list for the JWT
+ * @returns {Encrypter} An object that can perform actions turning JWTs into JWEs.
+ */
+ function createEncrypt(opts: encOpts, rcpts: JWK.Key | JWK.Key[] | { key: JWK.Key } | { key: JWK.Key }[]): Encrypter;
+ function createEncrypt(rcpts: JWK.Key | JWK.Key[] | { key: JWK.Key } | { key: JWK.Key }[]): Encrypter;
+
+ /**
+ * @class Decrypter
+ * @classdesc
+ * Processor of encrypted data.
+ *
+ * @description
+ * **NOTE:** This class cannot be instantiated directly. Instead
+ * call {@link createDecrypt}.
+ */
+ interface Decrypter {
+
+ /**
+ * Decrypts the given input.
+ *
+ * {opts}, if provided, is used to customize this specific decrypt operation.
+ * This argument has the same semantics as {JWE.createDecrypt}, and takes
+ * precedence over those options.
+ *
+ * @param {object|string} input The encrypted content
+ * @param {decryptCritHeaderOptions} [opts] The options for this decryption operation.
+ * @returns {Promise} A promise for the decyprted plaintext
+ * @memberOf Decrypter
+ */
+ decrypt(input: object | string, opts?: decryptCritHeaderOptions): Promise;
+ }
+
+ /**
+ * @class Encrypter
+ * @classdesc
+ * Generator of encrypted data.
+ *
+ * @description
+ * **NOTE:** This class cannot be instantiated directly. Instead call
+ * {@link createEncrypt}.
+ */
+ interface Encrypter {
+ /**
+ * Indicates the compression algorithm applied to the plaintext
+ * before it is encrypted. The possible values are:
+ *
+ * + **`"DEF"`**: Compress the plaintext using the DEFLATE algorithm.
+ * + **`""`**: Do not compress the plaintext.
+ *
+ * @type {string}
+ * @memberOf Encrypter
+ * @readonly
+ */
+ zip: string;
+
+ /**
+ * Indicates whether the output of this encryption generator is
+ * using the Compact serialization (`true`) or the JSON
+ * serialization (`false`).
+ *
+ * @type {boolean}
+ * @memberOf Encrypter
+ * @readonly
+ */
+ compact: boolean;
+
+ /**
+ * Indicates the format the output of this encryption generator takes.
+ *
+ * @type {string}
+ * @memberOf Encrypter
+ * @readonly
+ */
+ format: string;
+
+ /**
+ * The header parameter names that are protected. Protected header fields
+ * are first serialized to UTF-8 then encoded as util.base64url, then used as
+ * the additional authenticated data in the encryption operation.
+ *
+ * @type {string[]}
+ * @memberOf Encrypter
+ * @readonly
+ */
+ protected: string[];
+
+ /**
+ * The global header parameters, both protected and unprotected. Call
+ * {@link Encrypter#protected} to determine which parameters will
+ * be protected.
+ *
+ * @type {object}
+ * @memberOf Encrypter
+ * @readonly
+ */
+ header: object;
+
+ /**
+ * Updates the plaintext data for the encryption generator. The plaintext
+ * is appended to the end of any other plaintext already applied.
+ *
+ * If {data} is a Buffer, {encoding} is ignored. Otherwise, {data} is
+ * converted to a Buffer internally to {encoding}.
+ *
+ * @param {(Buffer|string)} [data] The plaintext to apply.
+ * @param {string} [encoding] The encoding of the plaintext.
+ * @returns {Encrypter} This encryption generator.
+ * @throws {Error} If ciphertext has already been generated.
+ * @memberOf Encrypter
+ */
+ update(data?: Buffer | string, encoding?: string): Encrypter;
+
+ /**
+ * Finishes the encryption operation.
+ *
+ * The returned Promise, when fulfilled, is the JSON Web Encryption (JWE)
+ * object, either in the Compact (if {@link Encrypter#compact} is
+ * `true`) or the JSON serialization.
+ *
+ * @param {(Buffer|string)} [data] The final plaintext data to apply.
+ * @param {string} [encoding] The encoding of the final plaintext data (if any).
+ * @returns {(Promise)} A promise for the encryption operation.
+ * @throws {Error} If ciphertext has already been generated.
+ * @memberOf Encrypter
+ */
+ final(data?: Buffer | string, encoding?: string): Promise;
+ }
+}
+
+/**
+ * Tools for creating and manipulating keys and keystores.
+ */
+export module JWK {
+
+ /**
+ * The following constants are used to select the different modes for
+ * operation, their names are self-explanatory.
+ */
+ const MODE_DECRYPT: string;
+ const MODE_ENCRYPT: string;
+ const MODE_SIGN: string;
+ const MODE_UNWRAP: string;
+ const MODE_VERIFY: string;
+ const MODE_WRAP: string;
+
+ // These are copied in code directly from KeyStore statics, don't know
+ // how to mimic that in d.ts, so for now they're copy pasta. Also, the javadoc will be
+ // on these defitions as the actual library will not usually have you executing the static
+ // methods themselves (e.g. you'll do JWK.asKey instead of JWK.KeyStore.asKey()).
+ /**
+ * Coerces the given object into a Key. If {key} is an instance of JWK.Key,
+ * it is returned directly. Otherwise, this method first creates a new
+ * JWK.KeyStore and calls {@link KeyStore#add} on this new KeyStore.
+ *
+ * @param {(object|string)} key The value to coerce into a Key
+ * @param {string} [form] The format of a String Key to expect
+ * @param {object} [extras] extra jwk fields inserted when importing from a non json string (eg "pem")
+ * @returns {Promise} A promise for the coerced Key.
+ */
+ function asKey(key: object | string, form?: string, extras?: object): Promise;
+
+ /**
+ * Coerces the given object into a KeyStore. This method uses the following
+ * algorithm to coerce {ks}:
+ *
+ * 1. if {ks} is an instance of JWK.KeyStore, it is returned directly
+ * 2. if {ks} is a string, it is parsed into a JSON value
+ * 3. if {ks} is an array, it creates a new JWK.KeyStore and calls {@link
+ * JWK.KeyStore#add} for each element in the {ks} array.
+ * 4. if {ks} is a JSON object, it creates a new JWK.KeyStore and calls {@link
+ * JWK.KeyStore#add} for each element in the "keys" property.
+ *
+ * @param {object|string} ks The value to coerce into a KeyStore
+ * @returns {Promise} A promise for the coerced KeyStore.
+ */
+ function asKeyStore(ks: object | string): Promise;
+
+ /**
+ * Creates a new empty KeyStore.
+ *
+ * @returns {JWK.KeyStore} The empty KeyStore.
+ */
+ function createKeyStore(): JWK.KeyStore;
+
+ /**
+ * Determines if the given object is a JWK.Key instance.
+ *
+ * @param {object} obj The object to test
+ * @returns {boolean} `true` if {obj} is a JWK.Key
+ */
+ function isKey(obj: any): boolean;
+
+ /**
+ * Determines if the given object is an instance of JWK.KeyStore.
+ *
+ * @param {*} obj The object to test
+ * @returns {boolean} `true` if {obj} is an instance of JWK.KeyStore,
+ * and `false` otherwise.
+ */
+ function isKeyStore(obj: any): boolean;
+
+ /**
+ * Options that can be used for searching a keystore for specific keys.
+ */
+ type KS_search_props = { alg?: string, use?: string, kid?: string, kty?: string };
+
+ /**
+ * @class JWK.KeyStore
+ * @classdesc
+ * Represents a collection of Keys.
+ *
+ * @description
+ * **NOTE:** This constructor cannot be called directly. Instead call {@link
+ * JWK.createKeyStore}.
+ */
+ interface KeyStore {
+ /**
+ * @method JWK.KeyStore#add
+ * @description
+ * Adds a Key to this KeyStore. If {jwk} is a string, it is first
+ * parsed into a plain JSON object. If {jwk} is already an instance
+ * of JWK.Key, its (public) JSON representation is first obtained
+ * then applied to a new JWK.Key object within this KeyStore.
+ *
+ * @param {(string|JWK.Key|object)} key The JSON Web Key (JWK)
+ * @param {string} [form] The formate of a string key to expect
+ * @param {*} [extras] extra jwk fields inserted when importing from a non json string (eg "pem")
+ * @returns {Promise} The promise for the added key
+ *
+ * @memberOf KeyStore
+ */
+ add(key: string | JWK.Key | object, form?: string, extras?: any): Promise;
+
+ /**
+ * Retrieves all of the contained Keys that optinally match all of the
+ * given properties.
+ *
+ * If {props} are specified, this method only returns Keys which exactly
+ * match the given properties. The properties can be any of the
+ * following:
+ *
+ * + **alg**: The algorithm for the Key.
+ * + **use**: The usage for the Key.
+ * + **kid**: The identifier for the Key.
+ *
+ * If no properties are given, this method returns all of the Keys for this
+ * KeyStore.
+ *
+ * @param {JWK.KS_search_props} [props] The properties to match against
+ * @param {boolean} [local = false] `true` if only the Keys
+ * directly contained by this KeyStore should be returned, or
+ * `false` if it should return all Keys of this KeyStore and
+ * its ancestors.
+ * @returns {JWK.Key[]} The list of matching Keys, or an empty array if no
+ * matches are found.
+ *
+ * @memberOf KeyStore
+ */
+ all(props?: JWK.KS_search_props, local?: boolean): JWK.Key[];
+
+ /**
+ * @method JWK.KeyStore#generate
+ * @description
+ * Generates a new random Key into this KeyStore.
+ *
+ * The type of {size} depends on the value of {kty}:
+ *
+ * + **`EC`**: String naming the curve to use, which can be one of:
+ * `"P-256"`, `"P-384"`, or `"P-521"` (default is **`"P-256"`**).
+ * + **`RSA`**: Number describing the size of the key, in bits (default is
+ * **`2048`**).
+ * + **`oct`**: Number describing the size of the key, in bits (default is
+ * **`256`**).
+ *
+ * Any properties in {props} are applied before the key is generated,
+ * and are expected to be data types acceptable in JSON. This allows the
+ * generated key to have a specific key identifier, or to specify its
+ * acceptable usage.
+ *
+ * The returned Promise, when fulfilled, returns the generated Key.
+ *
+ * @param {string} kty The type of generated key
+ * @param {(string|number)} [size] The size of the generated key
+ * @param {*} [props] Additional properties to apply to the generated
+ * key.
+ * @returns {Promise} The promise for the generated Key
+ * @throws {Error} If {kty} is not supported
+ *
+ * @memberOf KeyStore
+ */
+ generate(kty: string, size?: string | number, props?: any): Promise;
+
+ /**
+ * Retrieves the contained Key matching the given {kid}, and optionally
+ * all of the given properties. This method equivalent to calling
+ * {@link JWK.Store#all}, then returning the first Key whose
+ * "kid" is {kid}. If {kid} is undefined, then the first Key that
+ * is returned from `all()` is returned.
+ *
+ * @param {String} [kid]
+ * @param {object} [props]
+ * @param {Boolean} [local = false]
+ * @returns {JWK.Key}
+ *
+ * @param {string} [kid] The key identifier to match against.
+ * @param {JWK.KS_search_props} [props] The properties to match against.
+ * @param {boolean} [local = false] `true` if only the Keys
+ * directly contained by this KeyStore should be returned, or
+ * `false` if it should return all Keys of this KeyStore and
+ * its ancestors.
+ * @returns {JWK.Key} The Key matching {kid} and {props}, or `null`
+ * if no match is found.
+ *
+ * @memberOf KeyStore
+ */
+ get(kid?: string, props?: JWK.KS_search_props, local?: boolean): JWK.Key;
+ get(props?: JWK.KS_search_props, local?: boolean): JWK.Key;
+
+ /**
+ * @method JWK.KeyStore#remove
+ * @description
+ * Removes a Key from this KeyStore.
+ *
+ * **NOTE:** The removed Key's {keystore} property is not changed.
+ *
+ * @param {JWK.Key} key The key to remove.
+ *
+ * @memberOf KeyStore
+ */
+ remove(key: JWK.Key): void;
+
+ /**
+ * @method JWK.KeyStore#temp
+ * @description
+ * Creates a temporary KeyStore based on this KeyStore.
+ *
+ * @returns {JWK.KeyStore} The temporary KeyStore.
+ *
+ * @memberOf KeyStore
+ */
+ temp(): JWK.KeyStore;
+
+ /**
+ * @method JWK.KeyStore#toJSON
+ * @description
+ * Generates a JSON representation of this KeyStore, which conforms
+ * to a JWK Set from {I-D.ietf-jose-json-web-key}.
+ *
+ * @param {boolean} [isPrivate = false] `true` if the private fields
+ * of stored keys are to be included.
+ * @returns {*} The JSON representation of this KeyStore.
+ *
+ * @memberOf KeyStore
+ */
+ toJSON(isPrivate?: boolean): any;
+ }
+
+ // The below functions are technically defined as static functions on the KeyStore class,
+ // and then copied to the exports for the JWK module. See the documentation above for their
+ // use, but they are here just for completion sake, but commented out as you should use them
+ // from the module as intended.
+ /*
+ var KeyStore: {
+ asKey(key: object|string, form: string, extras: object): Promise;
+ asKeyStore(ks: any): Promise;
+ createKeyStore(): JWK.KeyStore;
+ isKey(obj: any): boolean;
+ isKeyStore(obj: any): boolean;
+ }
+ */
+
+ /**
+ * @class JWK.Key
+ * @classdesc
+ * Represents a JSON Web Key instance.
+ *
+ * @description
+ * **NOTE:** This class cannot be instantiated directly. Instead call
+ * {@link JWK.asKey}, {@link JWK.KeyStore#add}, or
+ * {@link JWK.KeyStore#generate}.
+ */
+ interface Key {
+
+ /**
+ * @member {String} JWK.Key#alg
+ * @description
+ * The sole algorithm this key can be used for.
+ *
+ * @type {string}
+ * @memberOf Key
+ */
+ alg: string;
+
+ /**
+ * @member {JWK.KeyStore} JWK.Key#keystore
+ * @description
+ * The owning keystore.
+ *
+ * @type {JWK.KeyStore}
+ * @memberOf Key
+ */
+ keystore: JWK.KeyStore;
+
+ /**
+ * @member {string} JWK.Key#kid
+ * @description
+ * The identifier for this Key.
+ *
+ * @type {string}
+ * @memberOf Key
+ */
+ kid: string;
+
+ /**
+ * @member {string} JWK.Key#kty
+ * @description
+ * The type of Key.
+ *
+ * @type {string}
+ * @memberOf Key
+ */
+ kty: string;
+
+ /**
+ * @member {number} JWK.Key#length
+ * @description
+ * The size of this Key, in bits.
+ *
+ * @type {number}
+ * @memberOf Key
+ */
+ length: number;
+
+ /**
+ * @member {String} JWK.Key#use
+ * @description
+ * The usage for this Key.
+ *
+ * @type {string}
+ * @memberOf Key
+ */
+ use: string;
+
+ /**
+ * @method JWK.Key#algorithms
+ * @description
+ * The possible algorithms this Key can be used for. The returned
+ * list is not any particular order, but is filtered based on the
+ * Key's intended usage.
+ *
+ * @param {string} mode The operation mode, see the MODE_* JWK constants.
+ * @returns {string[]} The list of supported algorithms
+ * @see JWK.Key#supports
+ * @memberOf Key
+ */
+ algorithms: (mode: string) => string[];
+
+ /**
+ * @method JWK.Key#decrypt
+ * @description
+ * Decrypts the given data using the specified algorithm.
+ *
+ * **NOTE:** This is the primitive decryption operation; the input is
+ * _**NOT**_ a JSON Web Encryption (JWE) object.
+ *
+ * **NOTE:** This operation is treated as distinct from {@link
+ * JWK.Key#unwrap}, as different algorithms and properties are often used
+ * for unwrapping a key versues decrypting arbitrary data.
+ *
+ * The Promise, when fulfilled, returns the plaintext data.
+ *
+ * @param {String} alg The decryption algorithm.
+ * @param {Buffer|String} data The data to decypt.
+ * @param {object} [props] Additional data for the decryption operation.
+ * @returns {Promise} The promise for the decryption operation.
+ * @throws {Error} If {alg} is not appropriate for this Key; or if
+ * the Key does not contain the appropriate properties.
+ *
+ *
+ * @memberOf Key
+ */
+ decrypt: (alg: string, data: string | Buffer, props?: any) => Promise
+ *
+ * The Promise, when fulfilled, returns an object with the following
+ * properties:
+ *
+ * + **data**: The data that was verified (and should be equal to
+ * {data}).
+ * + **mac**: The signature or MAC that was verified (and should be equal
+ * to {mac}).
+ * + **valid**: `true` if {mac} is valid for {data}.
+ *
+ * @param {String} alg The verification algorithm
+ * @param {String|Buffer} data The data to verify
+ * @param {String|Buffer} mac The signature or MAC to verify
+ * @param {object} [props] Additional properties for the verification
+ * algorithm.
+ * @returns {Promise} The promise for the verification operation.
+ * @throws {Error} If {alg} is not appropriate for this Key; or if
+ * the Key does not contain the appropriate properties.
+ *
+ *
+ * @memberOf Key
+ */
+ verify: (alg: string, data: string | Buffer, mac: string | Buffer, props?: any) => Promise;
+
+ /**
+ * @method JWK.Key#wrap
+ * @description
+ * Wraps the given key using the specified algorithm.
+ *
+ * **NOTE:** This is the primitive encryption operation; the output is
+ * _**NOT**_ a JSON Web Encryption (JWE) object.
+ *
+ * **NOTE:** This operation is treated as distinct from {@link
+ * JWK.Key#encrypt}, as different algorithms and properties are
+ * often used for wrapping a key versues encrypting arbitrary data.
+ *
+ * The Promise, when fulfilled, returns an object with the following
+ * properties:
+ *
+ * + **data**: The ciphertext data
+ * + **headers**: The additional header parameters to apply to a JWE.
+ *
+ * @param {String} alg The encryption algorithm
+ * @param {Buffer|String} data The data to encrypt
+ * @param {object} [props] Additional properties for the encryption
+ * algorithm.
+ * @returns {Promise} The promise for the encryption operation.
+ * @throws {Error} If {alg} is not appropriate for this Key; or if
+ * this Key does not contain the appropriate parameters.
+ * @memberOf Key
+ */
+ wrap: (alg: string, data: string | Buffer, props?: any) => Promise;
+ }
+}
+
+/**
+ * Contains all the signing tools for JWTs.
+ */
+export module JWS {
+
+ /**
+ * @property {Boolean} [compact] Use compact serialization?
+ * @property {String} [format] The serialization format to use ("compact",
+ * "flattened", "general")
+ * @property {object} [fields] Additional header fields
+ * @property {"*" | string[]} [protect] which headers to protect, "*" for all headers.
+ */
+ type signOpts = {
+ alg?: string,
+ compact?: boolean,
+ format?: string,
+ fields?: object,
+ protect?: "*" | string[]
+ };
+
+ /**
+ * @property {JWK.Key} key Key used to sign content
+ * @property {object} [header] Per-signatory header fields
+ * @property {String} [reference] Reference field to identify the key
+ * @property {"*" | string[]} [protect] List of fields to integrity
+ * protect ("*" to protect all fields)
+ */
+ type signSignatory = {
+ key: JWK.Key,
+ header?: object,
+ reference?: string,
+ protect?: "*" | string[]
+ };
+
+ /**
+ * Used to customize verification processes. The following options are currently
+ * supported:
+ *
+ * @property {} handlers An object where each name is a JOSE header member name and
+ * the value can be a boolean, function, or an object.
+ *
+ * Handlers are intended to support 'crit' extensions. When a boolean value,
+ * the member is expected to be processed once verification is fully complete.
+ * When a function, it is called just before the input is verified.
+ * (processed as if it were a `prepare` handler, as decribed in `verifyCritProcessors`).
+ * Note that normal processing of `verify()` does not continue until all
+ * relevant handlers have completed. Any changes handlers make to the
+ * provided objects affects `verify()`'s processing.
+ */
+ type verifyOptions = {
+ handlers: { [crit_header: string]: boolean | Function | verifyCritProcessors }
+ };
+
+ /**
+ * For the critical header processing, the options may include an object like this,
+ * which defines these fields to run at various times of verification processing.
+ * @property {Function} recipient A function called after a valid key is
+ * determined; it takes an object describing the recipient, and
+ * returns a Promise that is fulfilled once the handler's processing
+ * is complete.
+ * @property {Function} prepare A function called just prior to verifying
+ * the input; it takes an object describing the verification
+ * result, and returns a Promise that is fulfilled once
+ * the handler's processing is complete.
+ * @property {Function} complete A function called once verification is complete,
+ * just prior to fulfilling the Promise returned by `verify()`; it
+ * takes the object that will be returned by `verify()`'s fulfilled
+ * Promise, and returns a Promise that is fulfilled once the handler's
+ * processing is complete.
+ */
+ type verifyCritProcessors = {
+ recipient?: Function,
+ prepare?: Function,
+ complete?: Function
+ };
+
+ /**
+ * Object that defines the output that is given from the `verify()` function
+ * of a `Verifier`.
+ *
+ * @property {any} header The JOSE Header, combined from the relevant "header" and
+ * "protected" fields from the original JWE object.
+ * @property {JWK.Key} key The Key used for verifying.
+ * @property {Buffer} payload The verified content (as a Buffer)
+ * @property {string[]} protected An array containing the names of the protected fields
+ * @property {Buffer} signature The data that was used to verify payload with key.
+ */
+ type verifyReturn = {
+ header: object,
+ key: JWK.Key,
+ payload: Buffer,
+ protected: string[],
+ signature: Buffer
+ }
+
+ /**
+ * Creates a new JWS.Signer with the given options and signatories.
+ *
+ * @param {signOpts} opts The signing options.
+ * @param {(JWK.Key|JWK.Key[]|signSignatory[])} signs Signatories, either as an array of
+ * JWK.Key instances; or an array of signing signatory objects.
+ * @returns {Signer} The signature generator.
+ * @throws {Error} If Compact serialization is requested but there are
+ * multiple signatories
+ */
+ function createSign(opts: signOpts, signs: JWK.Key | JWK.Key[] | signSignatory[]): Signer;
+ function createSign(signs: JWK.Key | JWK.Key[] | signSignatory[]): Signer;
+
+ /**
+ * @description
+ * Creates a new JWS.Verifier with the given Key or KeyStore.
+ *
+ * @param {JWK.Key|JWK.KeyStore} ks The Key or KeyStore to use for verification.
+ * @returns {Verifier} The new verifier.
+ */
+ function createVerify(ks?: JWK.Key | JWK.KeyStore, opts?: verifyOptions): Verifier;
+
+ /**
+ * @class JWS.Signer
+ * @classdesc Generator of signed content.
+ *
+ * @description
+ * **NOTE:** this class cannot be instantiated directly. Instead call {@link
+ * JWS.createSign}.
+ */
+ interface Signer {
+
+ /**
+ * @member {Boolean} JWS.Signer#compact
+ * @description
+ * Indicates whether the outuput of this signature generator is using
+ * the Compact serialization (`true`) or the JSON serialization
+ * (`false`).
+ *
+ * @type {boolean}
+ * @memberOf Signer
+ */
+ compact: boolean;
+
+ /**
+ * @member {string} JWS.Signer#format
+ * @description
+ * The serialization format to use ("compact",
+ * "flattened", "general")
+ * @memberOf Signer
+ */
+ format: string;
+
+ /**
+ * @method JWS.Signer#update
+ * @description
+ * Updates the signing content for this signature content. The content
+ * is appended to the end of any other content already applied.
+ *
+ * If {data} is a Buffer, {encoding} is ignored. Otherwise, {data} is
+ * converted to a Buffer internally to {encoding}.
+ *
+ * @param {Buffer|String} data The data to sign.
+ * @param {String} [encoding="binary"] The encoding of {data}.
+ * @returns {Signer} This signature generator.
+ * @throws {Error} If a signature has already been generated.
+ * @memberOf Signer
+ */
+ update(data?: Buffer | string, encoding?: string): Signer;
+
+ /**
+ * @method JWS.Signer#final
+ * @description
+ * Finishes the signature operation.
+ *
+ * The returned Promise, when fulfilled, is the JSON Web Signature (JWS)
+ * object, either in the Compact (if {@link JWS.Signer#format} is
+ * `"compact"`), the flattened JSON (if {@link JWS.Signer#format} is
+ * "flattened"), or the general JSON serialization.
+ *
+ * @param {Buffer|String} [data] The final content to apply.
+ * @param {String} [encoding="binary"] The encoding of the final content
+ * (if any).
+ * @returns {Promise} The promise for the signatures
+ * @throws {Error} If a signature has already been generated.
+ * @memberOf Signer
+ */
+ final(data?: Buffer | string, encoding?: string): Promise;
+ }
+
+ /**
+ * @class JWS.Verifier
+ * @classdesc Parser of signed content.
+ *
+ * @description
+ * **NOTE:** this class cannot be instantiated directly. Instead call {@link
+ * JWS.createVerify}.
+ *
+ * @interface Verifier
+ */
+ interface Verifier {
+
+ /**
+ * If the verifier was created with a key, this key will be assumed to be
+ * assumed to be be the one to verify a signature, regardless of the kid of
+ * the JWT.
+ *
+ * @type {JWK.Key}
+ * @memberOf Verifier
+ */
+ defaultKey: JWK.Key;
+
+ /**
+ * The keystore that will be used to look up the `kid` from the JWT in.
+ *
+ * @type {JWK.KeyStore}
+ * @memberOf Verifier
+ */
+ keystore: JWK.KeyStore;
+
+ /**
+ * @method JWS.Verifier#verify
+ * @description
+ * Verifies the input JWS with one of the keys in the keystore associated with
+ * this verifier.
+ *
+ * @param {string} input The JWS in compact format.
+ * @param {verifyOptions} [opts] See verifyOptions documentation.
+ * @returns {Promise} See verifyReturn documentation.
+ * @memberOf Verifier
+ */
+ verify(input: string, opts?: verifyOptions): Promise
+ }
+}
+
+/**
+ * A collection of Buffer and conversion utilities.
+ */
+export module util {
+
+ /**
+ * Converts the given input into a Buffer with the given encoding.
+ *
+ * @param {(Buffer|string|Array|ArrayBuffer|ArrayBufferView)} input
+ * @param {string} encoding Defaults to 'binary'
+ * @returns {Buffer}
+ */
+ function asBuffer(input: Buffer | string | Array | ArrayBuffer | ArrayBufferView, encoding?: string): Buffer;
+
+ /**
+ * Returns a Buffer filled with random bytes of length `len`.
+ *
+ * @param {number} len
+ * @returns {Buffer}
+ */
+ function randomBytes(len: number): Buffer;
+
+ /**
+ * @namespace base64url
+ * @description
+ * Provides methods to encode and decode data according to the
+ * base64url alphabet.
+ */
+ module base64url {
+
+ /**
+ * Decodes the input from base64url.
+ *
+ * @param {String} input The data to decode.
+ * @returns {Buffer} the base64url decoding of {input}.
+ */
+ function decode(input: string): Buffer;
+
+ /**
+ * Encodes the input to base64url.
+ *
+ * If {input} is a Buffer, then {encoding} is ignored. Otherwise,
+ * {encoding} can be one of "binary", "base64", "hex", "utf8".
+ *
+ * @param {(Buffer|string)} input The data to encode.
+ * @param {string} [encoding = binary] The input encoding format.
+ * @returns {string} the base64url encoding of {input}.
+ */
+ function encode(input: Buffer | string, encoding?: string): string;
+ }
+
+ /**
+ * @namespace utf8
+ * @description
+ * Provides methods to encode and decode data as utf8.
+ */
+ module utf8 {
+
+ /**
+ * Decodes the input from utf8.
+ *
+ * @param {string} input The data to decode.
+ * @returns {string} the utf8 decoding of {input}.
+ */
+ function decode(input: string): string;
+
+ /**
+ * Encodes the input as utf8
+ *
+ * @param {string} input the data to encode.
+ * @returns {string} the ut8 encoding of {input}.
+ */
+ function encode(input: string): string;
+ }
+}
+
+/**
+ * Possible return value from the parse function. The values inside the return
+ * depend heavily on the type of JWT that is passed into it.
+ * @property {string} type Defines whether the JWT was a "JWS" or a "JWE"
+ * @property {string} format Whether the JWT was in compact or JSON format
+ * @property {Buffer|string|object} input The JWT
+ * @property {object} header All of the headers from the recipients or signatories.
+ * @property {function} perform The operation to perform. After calling parse, call the
+ * `perform` function from the return with a valid keystore to verify or decrypt the JWT.
+ */
+type parseCompactReturn = {
+ type: "JWS" | "JWE",
+ format: "compact" | "json",
+ input: Buffer | string | object,
+ header: object,
+ perform: (ks: JWK.KeyStore) => Promise | Promise
+};
+
+/**
+ * Possible return value from the parse function. The values inside the return
+ * depend heavily on the type of JWT that is passed into it.
+ * @property {string} type Defines whether the JWT was a "JWS" or a "JWE"
+ * @property {string} format Whether the JWT was in compact or JSON format
+ * @property {Buffer|string|object} input The JWT
+ * @property {object} all All of the headers from the recipients or signatories.
+ * @property {function} perform The operation to perform. After calling parse, call the
+ * `perform` function from the return with a valid keystore to verify or decrypt the JWT.
+ */
+type parseJSONReturn = {
+ type: "JWS" | "JWE",
+ format: "compact" | "json",
+ input: Buffer | string | object,
+ all: object,
+ perform: (ks: JWK.KeyStore) => Promise | Promise
+};
+
+/**
+ * Given a JWT passed in as input, the function will return all the known data about
+ * the JWT as described in the return documentation, as well as a function to process
+ * the token (either verify it or decrypt it). This is a helper function that performs
+ * guessing logic so the user does not need to manage whether a token is compact, json,
+ * JWS, or JWE.
+ *
+ * @param {Buffer|string|object} input The token
+ * @returns {parseCompactReturn|parseJSONReturn} the return object, as defined by its documentation.
+ */
+export function parse(input: Buffer | string | object): parseCompactReturn | parseJSONReturn;
+export namespace parse {
+
+ /**
+ * A helper function for `parse`, but is available for usage. This function is called
+ * for JWTs in the compact format.
+ *
+ * @param {Buffer|string|object} input The token
+ * @returns {parseCompactReturn|parseJSONReturn} the return object, as defined by its documentation.
+ */
+ function compact(input: Buffer | string | object): parseCompactReturn | parseJSONReturn;
+
+ /**
+ * A helper function for `parse`, but is available for usage. This function is called
+ * for JWTs in the JSON format.
+ *
+ * @param {Buffer|string|object} input The token
+ * @returns {parseCompactReturn|parseJSONReturn} the return object, as defined by its documentation.
+ */
+ function json(input: Buffer | string | object): parseCompactReturn | parseJSONReturn;
+}
diff --git a/node-jose/node-jose-tests.ts b/node-jose/node-jose-tests.ts
new file mode 100644
index 0000000000..fa43a262a9
--- /dev/null
+++ b/node-jose/node-jose-tests.ts
@@ -0,0 +1,388 @@
+/*
+ * Test file for node-jose. At this time these tests were taken verbatim
+ * from the documentation on the NPM page at
+ * https://www.npmjs.com/package/node-jose
+ * This file definitely needs to be cleaned up and more tests added to
+ * test the entirety of the definition file.
+ */
+
+import * as jose from 'node-jose';
+
+let keystore = jose.JWK.createKeyStore();
+let buf = new Buffer('a');
+
+jose.JWK.asKeyStore("{key: somekey}").
+ then(function (result) {
+ // {result} is a jose.JWK.KeyStore
+ keystore = result;
+ });
+
+let output = keystore.toJSON();
+output = keystore.toJSON(true);
+
+// by 'kid'
+let kid: string = "someID";
+let key = keystore.get(kid);
+
+// ... and by 'kty'
+key = keystore.get(kid, { kty: 'RSA' });
+
+// ... and by 'use'
+key = keystore.get(kid, { use: 'enc' });
+
+// ... and by 'alg'
+key = keystore.get(kid, { use: 'RSA-OAEP' });
+
+// ... and by 'kty' and 'use'
+key = keystore.get(kid, { kty: 'RSA', use: 'enc' });
+
+// same as above, but with a single {props} argument
+key = keystore.get({ kid: kid, kty: 'RSA', use: 'enc' });
+
+
+// searching for keys
+let everything = keystore.all();
+
+// filter by 'kid'
+everything = keystore.all({ kid: kid });
+
+// filter by 'kty'
+everything = keystore.all({ kty: 'RSA' });
+
+// filter by 'use'
+everything = keystore.all({ use: 'enc' });
+
+// filter by 'alg'
+everything = keystore.all({ alg: 'RSA-OAEP' });
+
+// filter by 'kid' + 'kty' + 'alg'
+everything = keystore.all({ kid: kid, kty: 'RSA', alg: 'RSA-OAEP' });
+
+// input is either a:
+// * jose.JWK.Key to copy from; or
+// * JSON object representing a JWK; or
+keystore.add({}).
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ key = result;
+ });
+
+// input is either a:
+// * String serialization of a JSON JWK/(base64-encoded) PEM/(binary-encoded) DER
+// * Buffer of a JSON JWK/(base64-encoded) PEM/(binary-encoded) DER
+// form is either a:
+// * "json" for a JSON stringified JWK
+// * "private" for a DER encoded 'raw' private key
+// * "pkcs8" for a DER encoded (unencrypted!) PKCS8 private key
+// * "public" for a DER encoded SPKI public key (alternate to 'spki')
+// * "spki" for a DER encoded SPKI public key
+// * "pkix" for a DER encoded PKIX X.509 certificate
+// * "x509" for a DER encoded PKIX X.509 certificate
+// * "pem" for a PEM encoded of PKCS8 / SPKI / PKIX
+keystore.add(buf, "json").
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ key = result;
+ });
+
+// first argument is the key type (kty)
+// second is the key size (in bits) or named curve ('crv') for "EC"
+keystore.generate("oct", 256).
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ key = result;
+ });
+
+// ... with properties
+var props = {
+ kid: 'gBdaS-G8RLax2qgObTD94w',
+ alg: 'A256GCM',
+ use: 'enc'
+};
+keystore.generate("oct", 256, props).
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ key = result;
+ });
+
+keystore.remove(key);
+// NOTE: key.keystore does not change!!
+
+// where input is either a:
+// * jose.JWK.Key instance
+// * JSON Object representation of a JWK
+jose.JWK.asKey({}).
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ // {result.keystore} is a unique jose.JWK.KeyStore
+ key = result;
+ });
+
+// where input is either a:
+// * String serialization of a JSON JWK/(base64-encoded) PEM/(binary-encoded) DER
+// * Buffer of a JSON JWK/(base64-encoded) PEM/(binary-encoded) DER
+// form is either a:
+// * "json" for a JSON stringified JWK
+// * "pkcs8" for a DER encoded (unencrypted!) PKCS8 private key
+// * "spki" for a DER encoded SPKI public key
+// * "pkix" for a DER encoded PKIX X.509 certificate
+// * "x509" for a DER encoded PKIX X.509 certificate
+// * "pem" for a PEM encoded of PKCS8 / SPKI / PKIX
+jose.JWK.asKey({}, 'json').
+ then(function (result) {
+ // {result} is a jose.JWK.Key
+ // {result.keystore} is a unique jose.JWK.KeyStore
+ key = result;
+ });
+
+output = key.toJSON();
+output = key.toJSON(true);
+
+// where hash is a supported algorithm, currently one of:
+// * SHA-1
+// * SHA-256
+// * SHA-384
+// * SHA-512
+key.thumbprint('SHA-1').
+ then(function (print) {
+ // {print} is a Buffer containing the thumbprint binary value
+ });
+
+// {input} is a Buffer
+jose.JWS.createSign(key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a JSON object -- JWS using the JSON General Serialization
+ });
+
+jose.JWS.createSign({ format: 'flattened' }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a JSON object -- JWS using the JSON Flattened Serialization
+ });
+
+jose.JWS.createSign({ format: 'compact' }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a String -- JWS using the Compact Serialization
+ });
+
+jose.JWS.createSign({ alg: 'PS256' }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+jose.JWS.createSign({ fields: { cty: 'jwk+json' } }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+jose.JWS.createSign(key).
+ update(buf, "utf8").
+ final().
+ then(function (result) {
+ // ....
+ });
+
+// {keys} is an Array of jose.JWK.Key instances
+jose.JWS.createSign([key, key]).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+jose.JWS.createVerify(keystore).
+ verify("some.jws.object").
+ then(function (result) {
+ // {result} is a Object with:
+ // * header: the combined 'protected' and 'unprotected' header members
+ // * payload: Buffer of the signed content
+ // * signature: Buffer of the verified signature
+ // * key: The key used to verify the signature
+ });
+
+// {key} can be:
+// * jose.JWK.Key
+// * JSON object representing a JWK
+jose.JWS.createVerify(key).
+ verify('some.jws.object').
+ then(function (result) {
+ // ...
+ });
+
+jose.JWS.createVerify().
+ verify('some.jws.key').
+ then(function (result) {
+ // ...
+ });
+
+var opts = {
+ handlers: {
+ "exp": true
+ }
+};
+
+jose.JWS.createVerify(key, opts).
+ verify('some.jws.key').
+ then(function (result) {
+ // ...
+ });
+
+var opts2 = {
+ handlers: {
+ "exp": function (jws: any) {
+ // {jws} is the JWS verify output, pre-verification
+ jws.header.exp = new Date(jws.header.exp);
+ }
+ }
+};
+jose.JWS.createVerify(key, opts2).
+ verify('some.jws.key').
+ then(function (result) {
+ // ...
+ });
+
+var opts3 = {
+ handlers: {
+ "exp": {
+ complete: function (jws: any) {
+ // {jws} is the JWS verify output, post-verification
+ jws.header.exp = new Date(jws.header.exp);
+ }
+ }
+ }
+};
+jose.JWS.createVerify(key, opts3).
+ verify('some.jws.key').
+ then(function (result) {
+ // ...
+ });
+
+//Encryption
+
+// {input} is a Buffer
+jose.JWE.createEncrypt(key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a JSON Object -- JWE using the JSON General Serialization
+ });
+
+jose.JWE.createEncrypt({ format: 'compact' }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a String -- JWE using the Compact Serialization
+ });
+
+jose.JWE.createEncrypt({ format: 'flattened' }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // {result} is a JSON Object -- JWE using the JSON Flattened Serialization
+ });
+
+jose.JWE.createEncrypt({ zip: true }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+jose.JWE.createEncrypt({ fields: { cty: 'jwk+json' } }, key).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+// {keys} is an Array of jose.JWK.Key instances
+jose.JWE.createEncrypt([key, key]).
+ update(buf).
+ final().
+ then(function (result) {
+ // ....
+ });
+
+jose.JWE.createDecrypt(keystore).
+ decrypt('some.jwe').
+ then(function (result) {
+ // {result} is a Object with:
+ // * header: the combined 'protected' and 'unprotected' header members
+ // * protected: an array of the member names from the "protected" member
+ // * key: Key used to decrypt
+ // * payload: Buffer of the decrypted content
+ // * plaintext: Buffer of the decrypted content (alternate)
+ });
+
+jose.JWE.createDecrypt(key).
+ decrypt('some.jwe').
+ then(function (result) {
+ // ....
+ });
+
+var opts4 = {
+ handlers: {
+ "exp": true
+ }
+};
+jose.JWE.createDecrypt(key, opts4).
+ decrypt('some.jwe').
+ then(function (result) {
+ // ...
+ });
+//To perform additional (pre-decrypt) processing on a crit header member:
+
+var opts5 = {
+ handlers: {
+ "exp": function (jwe: any) {
+ // {jwe} is the JWE decrypt output, pre-decryption
+ jwe.header.exp = new Date(jwe.header.exp);
+ }
+ }
+};
+jose.JWE.createDecrypt(key, opts5).
+ decrypt('some.jwe').
+ then(function (result) {
+ // ...
+ });
+//To perform additional (post-decrypt) processing on a crit header member:
+
+var opts6 = {
+ handlers: {
+ "exp": {
+ complete: function (jwe: any) {
+ // {jwe} is the JWE decrypt output, post-decryption
+ jwe.header.exp = new Date(jwe.header.exp);
+ }
+ }
+ }
+};
+jose.JWE.createDecrypt(key, opts6).
+ decrypt('some.jwe').
+ then(function (result) {
+ // ...
+ });
+
+var buff = jose.util.asBuffer('input');
+
+var output2 = jose.util.base64url.encode(buf);
+
+// explicit encoding
+output2 = jose.util.base64url.encode(buf, "utf8");
+
+// implied "utf8" encoding
+output2 = jose.util.base64url.encode(buf);
+
+var output3 = jose.util.base64url.decode('input');
+
+// argument is size (in bytes)
+var rnd = jose.util.randomBytes(32);
diff --git a/types/xml-js/tsconfig.json b/node-jose/tsconfig.json
similarity index 93%
rename from types/xml-js/tsconfig.json
rename to node-jose/tsconfig.json
index 09b2ed9cff..0de8c3967e 100644
--- a/types/xml-js/tsconfig.json
+++ b/node-jose/tsconfig.json
@@ -17,6 +17,6 @@
},
"files": [
"index.d.ts",
- "xml-js-tests.ts"
+ "node-jose-tests.ts"
]
-}
\ No newline at end of file
+}
diff --git a/notNeededPackages.json b/notNeededPackages.json
index 90a63f066e..182d9133b8 100644
--- a/notNeededPackages.json
+++ b/notNeededPackages.json
@@ -24,6 +24,12 @@
"sourceRepoURL": "https://github.com/mzabriskie/axios",
"asOfVersion": "0.14.0"
},
+ {
+ "libraryName": "Bugsnag Browser",
+ "typingsPackageName": "bugsnag-js",
+ "sourceRepoURL": "https://github.com/bugsnag/bugsnag-js",
+ "asOfVersion": "3.1.0"
+ },
{
"libraryName": "camel-case",
"typingsPackageName": "camel-case",
@@ -36,6 +42,12 @@
"sourceRepoURL": "https://github.com/blakeembrey/change-case",
"asOfVersion": "2.3.1"
},
+ {
+ "libraryName": "cheap-ruler",
+ "typingsPackageName": "cheap-ruler",
+ "sourceRepoURL": "https://github.com/mapbox/cheap-ruler",
+ "asOfVersion": "2.5.0"
+ },
{
"libraryName": "constant-case",
"typingsPackageName": "constant-case",
@@ -72,6 +84,12 @@
"sourceRepoURL": "https://github.com/bterlson/ecmarkup",
"asOfVersion": "3.4.0"
},
+ {
+ "libraryName": "FastSimplexNoise",
+ "typingsPackageName": "fast-simplex-noise",
+ "sourceRepoURL": "https://www.npmjs.com/package/fast-simplex-noise",
+ "asOfVersion": "3.0.0"
+ },
{
"libraryName": "FineUploader",
"typingsPackageName": "fine-uploader",
@@ -84,6 +102,12 @@
"sourceRepoURL": "https://github.com/ascoders/gaea-model",
"asOfVersion": "0.0.0"
},
+ {
+ "libraryName": "github",
+ "typingsPackageName": "github",
+ "sourceRepoURL": "https://github.com/mikedeboer/node-github",
+ "asOfVersion": "7.1.0"
+ },
{
"libraryName": "Facebook's Immutable",
"typingsPackageName": "immutable",
@@ -157,10 +181,10 @@
"asOfVersion": "1.0.0"
},
{
- "libraryName": "localforage",
- "typingsPackageName": "localforage",
- "sourceRepoURL": "https://github.com/localForage/localForage",
- "asOfVersion": "0.0.34"
+ "libraryName": "localforage",
+ "typingsPackageName": "localforage",
+ "sourceRepoURL": "https://github.com/localForage/localForage",
+ "asOfVersion": "0.0.34"
},
{
"libraryName": "lower-case",
@@ -174,6 +198,12 @@
"sourceRepoURL": "https://github.com/blakeembrey/lower-case-first",
"asOfVersion": "1.0.1"
},
+ {
+ "libraryName": "maquette",
+ "typingsPackageName": "maquette",
+ "sourceRepoURL": "http://maquettejs.org/",
+ "asOfVersion": "2.1.6"
+ },
{
"libraryName": "mobservable",
"typingsPackageName": "mobservable",
@@ -336,6 +366,12 @@
"sourceRepoURL": "https://github.com/blakeembrey/title-case",
"asOfVersion": "1.1.2"
},
+ {
+ "libraryName": "TsMonad",
+ "typingsPackageName": "tsmonad",
+ "sourceRepoURL": "https://github.com/cbowdon/TsMonad",
+ "asOfVersion": "0.5.0"
+ },
{
"libraryName": "TypeScript",
"typingsPackageName": "typescript",
@@ -378,6 +414,12 @@
"sourceRepoURL": "https://code.google.com/p/x2js/",
"asOfVersion": "3.1.0"
},
+ {
+ "libraryName": "xml-js",
+ "typingsPackageName": "xml-js",
+ "sourceRepoURL": "https://github.com/nashwaan/xml-js",
+ "asOfVersion": "1.0.0"
+ },
{
"libraryName": "@xmpp/jid",
"typingsPackageName": "xmpp-jid",
diff --git a/package.json b/package.json
index 77e57cbb44..aa9eeed0ff 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped/issues"
},
"engines": {
- "node": ">= 6.9.1"
+ "node": ">=7.8.0"
},
"scripts": {
"compile-scripts": "tsc -p scripts",
diff --git a/scripts/not-needed.js b/scripts/not-needed.js
index e17b3ac6ce..9a2360c72b 100644
--- a/scripts/not-needed.js
+++ b/scripts/not-needed.js
@@ -17,7 +17,7 @@ rmdirRecursive(path.join("types", typingsPackageName));
const notNeededPackages = JSON.parse(fs.readFileSync("notNeededPackages.json", "utf-8"));
notNeededPackages.packages.push({ libraryName, typingsPackageName, sourceRepoURL, asOfVersion });
notNeededPackages.packages.sort((x, y) => x.typingsPackageName < y.typingsPackageName ? -1 : 1);
-fs.writeFileSync("notNeededPackages.json", JSON.stringify(notNeededPackages, undefined, 4), "utf-8");
+fs.writeFileSync("notNeededPackages.json", JSON.stringify(notNeededPackages, undefined, 4) + "\n", "utf-8");
function rmdirRecursive(dir) {
for (let entry of fs.readdirSync(dir)) {
diff --git a/types/acorn/index.d.ts b/types/acorn/index.d.ts
index 441deb29c3..ce7da6d368 100644
--- a/types/acorn/index.d.ts
+++ b/types/acorn/index.d.ts
@@ -63,7 +63,7 @@ declare namespace acorn {
class SourceLocation implements ESTree.SourceLocation {
start: Position;
end: Position;
- source?: string;
+ source?: string | null;
constructor(p: Parser, start: Position, end: Position);
}
diff --git a/types/aws-lambda/aws-lambda-tests.ts b/types/aws-lambda/aws-lambda-tests.ts
index 3aede36d4c..e793442177 100644
--- a/types/aws-lambda/aws-lambda-tests.ts
+++ b/types/aws-lambda/aws-lambda-tests.ts
@@ -5,12 +5,17 @@ var num: number = 5;
var error: Error = new Error();
var b: boolean = true;
var apiGwEvt: AWSLambda.APIGatewayEvent;
+var customAuthorizerEvt: AWSLambda.CustomAuthorizerEvent;
var clientCtx: AWSLambda.ClientContext;
var clientContextEnv: AWSLambda.ClientContextEnv;
var clientContextClient: AWSLambda.ClientContextClient;
var context: AWSLambda.Context;
var identity: AWSLambda.CognitoIdentity;
var proxyResult: AWSLambda.ProxyResult;
+var authResponse: AWSLambda.AuthResponse;
+var policyDocument: AWSLambda.PolicyDocument;
+var statement: AWSLambda.Statement;
+var authResponseContext: AWSLambda.AuthResponseContext;
var snsEvt: AWSLambda.SNSEvent;
var snsEvtRecs: AWSLambda.SNSEventRecord[];
var snsEvtRec: AWSLambda.SNSEventRecord;
@@ -87,6 +92,11 @@ str = apiGwEvt.requestContext.resourceId;
str = apiGwEvt.requestContext.resourcePath;
str = apiGwEvt.resource;
+/* API Gateway CustomAuthorizer Event */
+str = customAuthorizerEvt.type;
+str = customAuthorizerEvt.authorizationToken;
+str = customAuthorizerEvt.methodArn;
+
/* SNS Event */
snsEvtRecs = snsEvt.Records;
@@ -119,6 +129,41 @@ proxyResult.headers["example"] = b;
proxyResult.headers["example"] = num;
str = proxyResult.body;
+/* API Gateway CustomAuthorizer AuthResponse */
+authResponseContext = {
+ stringKey: str,
+ numberKey: num,
+ booleanKey: b
+};
+
+statement = {
+ Action: str,
+ Effect: str,
+ Resource: str
+};
+
+statement = {
+ Action: [str, str],
+ Effect: str,
+ Resource: [str, str]
+};
+
+policyDocument = {
+ Version: str,
+ Statement: [statement]
+};
+
+authResponse = {
+ principalId: str,
+ policyDocument: policyDocument,
+ context: authResponseContext
+};
+
+authResponse = {
+ principalId: str,
+ policyDocument: policyDocument
+};
+
/* Context */
b = context.callbackWaitsForEmptyEventLoop;
str = context.functionName;
@@ -170,6 +215,14 @@ function proxyCallback(cb: AWSLambda.ProxyCallback) {
cb(null, proxyResult);
}
+/* CustomAuthorizerCallback */
+function customAuthorizerCallback(cb: AWSLambda.CustomAuthorizerCallback) {
+ cb();
+ cb(null);
+ cb(error);
+ cb(null, authResponse);
+}
+
/* Compatibility functions */
context.done();
context.done(error);
@@ -183,3 +236,4 @@ context.fail(str);
/* Handler */
let handler: AWSLambda.Handler = (event: any, context: AWSLambda.Context, cb: AWSLambda.Callback) => { };
let proxyHandler: AWSLambda.ProxyHandler = (event: AWSLambda.APIGatewayEvent, context: AWSLambda.Context, cb: AWSLambda.ProxyCallback) => { };
+let CustomAuthorizerHandler: AWSLambda.CustomAuthorizerHandler = (event: AWSLambda.CustomAuthorizerEvent, context: AWSLambda.Context, cb: AWSLambda.CustomAuthorizerCallback) => { };
diff --git a/types/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts
index c5e49d54c6..a5fa271699 100644
--- a/types/aws-lambda/index.d.ts
+++ b/types/aws-lambda/index.d.ts
@@ -39,6 +39,13 @@ interface APIGatewayEvent {
resource: string;
}
+// API Gateway CustomAuthorizer "event"
+interface CustomAuthorizerEvent {
+ type: string;
+ authorizationToken: string;
+ methodArn: string;
+}
+
// SNS "event"
interface SNSMessageAttribute {
Type: string;
@@ -180,6 +187,43 @@ interface ProxyResult {
body: string;
}
+/**
+ * API Gateway CustomAuthorizer AuthResponse.
+ * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
+ */
+interface AuthResponse {
+ principalId: string;
+ policyDocument: PolicyDocument;
+ context?: AuthResponseContext;
+}
+
+/**
+ * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.
+ * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
+ */
+interface PolicyDocument {
+ Version: string;
+ Statement: [Statement];
+}
+
+/**
+ * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement.
+ * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
+ */
+interface Statement {
+ Action: string | [string];
+ Effect: string;
+ Resource: string | [string];
+}
+
+/**
+ * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement.
+ * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
+ */
+interface AuthResponseContext {
+ [name: string]: string | number | boolean;
+}
+
/**
* AWS Lambda handler function.
* http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html
@@ -190,6 +234,7 @@ interface ProxyResult {
*/
export type Handler = (event: any, context: Context, callback?: Callback) => void;
export type ProxyHandler = (event: APIGatewayEvent, context: Context, callback?: ProxyCallback) => void;
+export type CustomAuthorizerHandler = (event: CustomAuthorizerEvent, context: Context, callback?: CustomAuthorizerCallback) => void;
/**
* Optional callback parameter.
@@ -200,5 +245,6 @@ export type ProxyHandler = (event: APIGatewayEvent, context: Context, callback?:
*/
export type Callback = (error?: Error, result?: any) => void;
export type ProxyCallback = (error?: Error, result?: ProxyResult) => void;
+export type CustomAuthorizerCallback = (error?: Error, result?: AuthResponse) => void;
export as namespace AWSLambda;
diff --git a/types/boom/boom-tests.ts b/types/boom/boom-tests.ts
index 8b5c3bdce6..382eb24bbd 100644
--- a/types/boom/boom-tests.ts
+++ b/types/boom/boom-tests.ts
@@ -1,8 +1,41 @@
-
import Boom = require('boom');
+var bo = Boom.wrap(new Error('test'), 400, 'some message');
+var a: string = bo.output.headers['some header'];
+
Boom.create(500, 'Internal server error', { timestamp: Date.now() });
-Boom.wrap(new Error('test'), 400);
-Boom.badRequest('Invalid cookies');
+
+Boom.badRequest('message', {some: 'data'});
+Boom.unauthorized('message', 'scheme', {some: 'data'});
+Boom.unauthorized(null, 'scheme', 'data');
+Boom.paymentRequired('message', {some: 'data'});
+Boom.forbidden('message', {some: 'data'});
+Boom.notFound('message', {some: 'data'});
+Boom.methodNotAllowed('message', {some: 'data'});
+Boom.notAcceptable('message', {some: 'data'});
+Boom.proxyAuthRequired('message', {some: 'data'});
+Boom.clientTimeout('message', {some: 'data'});
+Boom.conflict('message', {some: 'data'});
+Boom.resourceGone('message', {some: 'data'});
+Boom.lengthRequired('message', {some: 'data'});
+Boom.preconditionFailed('message', {some: 'data'});
+Boom.entityTooLarge('message', {some: 'data'});
+Boom.uriTooLong('message', {some: 'data'});
+Boom.unsupportedMediaType('message', {some: 'data'});
+Boom.rangeNotSatisfiable('message', {some: 'data'});
+Boom.expectationFailed('message', {some: 'data'});
+Boom.teapot('message', {some: 'data'});
+Boom.badData('message', {some: 'data'});
+Boom.locked('message', {some: 'data'});
+Boom.preconditionRequired('message', {some: 'data'});
+Boom.tooManyRequests('message', {some: 'data'});
+Boom.illegal('message', {some: 'data'});
+
+Boom.badImplementation('message', {some: 'data'});
+Boom.notImplemented('message', {some: 'data'});
+Boom.badGateway('message', {some: 'data'});
+Boom.serverUnavailable('message', {some: 'data'});
+Boom.gatewayTimeout('message', {some: 'data'});
+
Boom.unauthorized() as Error;
diff --git a/types/boom/index.d.ts b/types/boom/index.d.ts
index e8cfb5722f..863e2deafc 100644
--- a/types/boom/index.d.ts
+++ b/types/boom/index.d.ts
@@ -1,6 +1,6 @@
-// Type definitions for boom
+// Type definitions for boom 4.3
// Project: http://github.com/hapijs/boom
-// Definitions by: Igor Rogatty
+// Definitions by: Igor Rogatty , AJP
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///
@@ -9,53 +9,294 @@ export = Boom;
declare namespace Boom {
- export interface BoomError {
- data: any;
- reformat: () => void;
+ /**
+ * boom provides a set of utilities for returning HTTP errors. Each utility returns a Boom error response object (instance of Error) which includes the following properties:
+ * @see {@link https://github.com/hapijs/boom#boom}
+ */
+ export interface BoomError extends Error {
+ /** isBoom - if true, indicates this is a Boom object instance. */
isBoom: boolean;
+ /** isServer - convenience bool indicating status code >= 500. */
isServer: boolean;
+ /** message - the error message. */
message: string;
+ /** output - the formatted response. Can be directly manipulated after object construction to return a custom error response. Allowed root keys: */
output: Output;
- name: string;
+ /** reformat() - rebuilds error.output using the other object properties. */
+ reformat: () => string;
}
export interface Output {
+ /** statusCode - the HTTP status code (typically 4xx or 5xx). */
statusCode: number;
- headers: any;
- payload: any;
+ /** headers - an object containing any HTTP headers where each key is a header name and value is the header content. (Limited value type to string https://github.com/hapijs/boom/issues/151 ) */
+ headers: {[index: string]: string};
+ /** payload - the formatted object used as the response payload (stringified). Can be directly manipulated but any changes will be lost if reformat() is called. Any content allowed and by default includes the following content: */
+ payload: {
+ /** statusCode - the HTTP status code, derived from error.output.statusCode. */
+ statusCode: number;
+ /** error - the HTTP status message (e.g. 'Bad Request', 'Internal Server Error') derived from statusCode. */
+ error: string;
+ /** message - the error message derived from error.message. */
+ message: string;
+ }
}
+ /**
+ * Decorates an error with the boom properties
+ * @param error the error object to wrap. If error is already a boom object, returns back the same object.
+ * @param statusCode optional HTTP status code. Defaults to 500.
+ * @param message optional message string. If the error already has a message, it adds the message as a prefix. Defaults to no message.
+ * @see {@link https://github.com/hapijs/boom#wraperror-statuscode-message}
+ */
export function wrap(error: Error, statusCode?: number, message?: string): BoomError;
+
+ /**
+ * Generates an Error object with the boom decorations
+ * @param statusCode an HTTP error code number. Must be greater or equal 400.
+ * @param message optional message string.
+ * @param data additional error data set to error.data property.
+ * @see {@link https://github.com/hapijs/boom#createstatuscode-message-data}
+ */
export function create(statusCode: number, message?: string, data?: any): BoomError;
// 4xx
+ /**
+ * Returns a 400 Bad Request error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boombadrequestmessage-data}
+ */
export function badRequest(message?: string, data?: any): BoomError;
- export function unauthorized(message?: string, scheme?: any, attributes?: any): BoomError;
+
+ /**
+ * Returns a 401 Unauthorized error
+ * @param message optional message.
+ * @param scheme can be one of the following:
+ * * an authentication scheme name
+ * * an array of string values. These values will be separated by ', ' and set to the 'WWW-Authenticate' header.
+ * @param attributes an object of values to use while setting the 'WWW-Authenticate' header. This value is only used when scheme is a string, otherwise it is ignored. Every key/value pair will be included in the 'WWW-Authenticate' in the format of 'key="value"' as well as in the response payload under the attributes key. Alternatively value can be a string which is use to set the value of the scheme, for example setting the token value for negotiate header. If string is used message parameter must be null. null and undefined will be replaced with an empty string. If attributes is set, message will be used as the 'error' segment of the 'WWW-Authenticate' header. If message is unset, the 'error' segment of the header will not be present and isMissing will be true on the error object.
+ * @see {@link https://github.com/hapijs/boom#boomunauthorizedmessage-scheme-attributes}
+ */
+ export function unauthorized(message?: string, scheme?: string | string[], attributes?: {[index: string]: string}): BoomError;
+ export function unauthorized(message?: null, scheme?: string | string[], attributes?: string): BoomError;
+
+ /**
+ * Returns a 402 Payment Required error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boompaymentrequiredmessage-data}
+ */
+ export function paymentRequired(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 403 Forbidden error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomforbiddenmessage-data}
+ */
export function forbidden(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 404 Not Found error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomnotfoundmessage-data}
+ */
export function notFound(message?: string, data?: any): BoomError;
- export function methodNotAllowed(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 405 Method Not Allowed error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @param allow optional string or array of strings (to be combined and separated by ', ') which is set to the 'Allow' header.
+ * @see {@link https://github.com/hapijs/boom#boommethodnotallowedmessage-data-allow}
+ */
+ export function methodNotAllowed(message?: string, data?: any, allow?: string | string[]): BoomError;
+
+ /**
+ * Returns a 406 Not Acceptable error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomnotacceptablemessage-data}
+ */
export function notAcceptable(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 407 Proxy Authentication Required error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomproxyauthrequiredmessage-data}
+ */
export function proxyAuthRequired(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 408 Request Time-out error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomclienttimeoutmessage-data}
+ */
export function clientTimeout(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 409 Conflict error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomconflictmessage-data}
+ */
export function conflict(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 410 Gone error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomresourcegonemessage-data}
+ */
export function resourceGone(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 411 Length Required error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomlengthrequiredmessage-data}
+ */
export function lengthRequired(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 412 Precondition Failed error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boompreconditionfailedmessage-data}
+ */
export function preconditionFailed(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 413 Request Entity Too Large error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomentitytoolargemessage-data}
+ */
export function entityTooLarge(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 414 Request-URI Too Large error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomuritoolongmessage-data}
+ */
export function uriTooLong(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 415 Unsupported Media Type error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomunsupportedmediatypemessage-data}
+ */
export function unsupportedMediaType(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 416 Requested Range Not Satisfiable error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomrangenotsatisfiablemessage-data}
+ */
export function rangeNotSatisfiable(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 417 Expectation Failed error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomexpectationfailedmessage-data}
+ */
export function expectationFailed(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 418 I'm a Teapot error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomteapotmessage-data}
+ */
+ export function teapot(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 422 Unprocessable Entity error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boombaddatamessage-data}
+ */
export function badData(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 423 Locked error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomlockedmessage-data}
+ */
export function locked(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 428 Precondition Required error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boompreconditionrequiredmessage-data}
+ */
export function preconditionRequired(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 429 Too Many Requests error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomtoomanyrequestsmessage-data}
+ */
export function tooManyRequests(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 451 Unavailable For Legal Reasons error
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomillegalmessage-data}
+ */
export function illegal(message?: string, data?: any): BoomError;
// 5xx
+ /**
+ * Returns a 500 Internal Server Error error
+ * Only 500 errors will hide your message from the end user. Your message is recorded in the server log.
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boombadimplementationmessage-data---alias-internal}
+ */
export function badImplementation(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 501 Not Implemented error with your error message to the user
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomnotimplementedmessage-data}
+ */
export function notImplemented(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 502 Bad Gateway error with your error message to the user
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boombadgatewaymessage-data}
+ */
export function badGateway(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 503 Service Unavailable error with your error message to the user
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomserverunavailablemessage-data}
+ */
export function serverUnavailable(message?: string, data?: any): BoomError;
+
+ /**
+ * Returns a 504 Gateway Time-out error with your error message to the user
+ * @param message optional message.
+ * @param data optional additional error data.
+ * @see {@link https://github.com/hapijs/boom#boomgatewaytimeoutmessage-data}
+ */
export function gatewayTimeout(message?: string, data?: any): BoomError;
}
diff --git a/types/boom/v3/boom-tests.ts b/types/boom/v3/boom-tests.ts
new file mode 100644
index 0000000000..8b5c3bdce6
--- /dev/null
+++ b/types/boom/v3/boom-tests.ts
@@ -0,0 +1,8 @@
+
+
+import Boom = require('boom');
+
+Boom.create(500, 'Internal server error', { timestamp: Date.now() });
+Boom.wrap(new Error('test'), 400);
+Boom.badRequest('Invalid cookies');
+Boom.unauthorized() as Error;
diff --git a/types/boom/v3/index.d.ts b/types/boom/v3/index.d.ts
new file mode 100644
index 0000000000..2c0a3ce21d
--- /dev/null
+++ b/types/boom/v3/index.d.ts
@@ -0,0 +1,61 @@
+// Type definitions for boom 3.2
+// Project: http://github.com/hapijs/boom
+// Definitions by: Igor Rogatty
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+///
+
+export = Boom;
+
+declare namespace Boom {
+
+ export interface BoomError {
+ data: any;
+ reformat: () => void;
+ isBoom: boolean;
+ isServer: boolean;
+ message: string;
+ output: Output;
+ name: string;
+ }
+
+ export interface Output {
+ statusCode: number;
+ headers: any;
+ payload: any;
+ }
+
+ export function wrap(error: Error, statusCode?: number, message?: string): BoomError;
+ export function create(statusCode: number, message?: string, data?: any): BoomError;
+
+ // 4xx
+ export function badRequest(message?: string, data?: any): BoomError;
+ export function unauthorized(message?: string, scheme?: any, attributes?: any): BoomError;
+ export function forbidden(message?: string, data?: any): BoomError;
+ export function notFound(message?: string, data?: any): BoomError;
+ export function methodNotAllowed(message?: string, data?: any): BoomError;
+ export function notAcceptable(message?: string, data?: any): BoomError;
+ export function proxyAuthRequired(message?: string, data?: any): BoomError;
+ export function clientTimeout(message?: string, data?: any): BoomError;
+ export function conflict(message?: string, data?: any): BoomError;
+ export function resourceGone(message?: string, data?: any): BoomError;
+ export function lengthRequired(message?: string, data?: any): BoomError;
+ export function preconditionFailed(message?: string, data?: any): BoomError;
+ export function entityTooLarge(message?: string, data?: any): BoomError;
+ export function uriTooLong(message?: string, data?: any): BoomError;
+ export function unsupportedMediaType(message?: string, data?: any): BoomError;
+ export function rangeNotSatisfiable(message?: string, data?: any): BoomError;
+ export function expectationFailed(message?: string, data?: any): BoomError;
+ export function badData(message?: string, data?: any): BoomError;
+ export function locked(message?: string, data?: any): BoomError;
+ export function preconditionRequired(message?: string, data?: any): BoomError;
+ export function tooManyRequests(message?: string, data?: any): BoomError;
+ export function illegal(message?: string, data?: any): BoomError;
+
+ // 5xx
+ export function badImplementation(message?: string, data?: any): BoomError;
+ export function notImplemented(message?: string, data?: any): BoomError;
+ export function badGateway(message?: string, data?: any): BoomError;
+ export function serverUnavailable(message?: string, data?: any): BoomError;
+ export function gatewayTimeout(message?: string, data?: any): BoomError;
+}
diff --git a/types/fast-simplex-noise/tsconfig.json b/types/boom/v3/tsconfig.json
similarity index 69%
rename from types/fast-simplex-noise/tsconfig.json
rename to types/boom/v3/tsconfig.json
index 396315e587..689f5dec00 100644
--- a/types/fast-simplex-noise/tsconfig.json
+++ b/types/boom/v3/tsconfig.json
@@ -7,16 +7,21 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
- "baseUrl": "../",
+ "baseUrl": "../../",
"typeRoots": [
- "../"
+ "../../"
],
"types": [],
+ "paths": {
+ "boom": [
+ "boom/v3"
+ ]
+ },
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
- "fast-simplex-noise-tests.ts"
+ "boom-tests.ts"
]
}
\ No newline at end of file
diff --git a/types/bson/index.d.ts b/types/bson/index.d.ts
index e34462b2b7..67df319bf6 100644
--- a/types/bson/index.d.ts
+++ b/types/bson/index.d.ts
@@ -1,6 +1,7 @@
-// Type definitions for bson 1.0
+// Type definitions for bson 1.0.4
// Project: https://github.com/mongodb/js-bson
// Definitions by: Hiroki Horiuchi
+// Federico Caselli
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///
@@ -37,6 +38,17 @@ export class Binary {
static SUBTYPE_USER_DEFINED: number;
constructor(buffer: Buffer, subType?: number);
+
+ /** The length of the binary. */
+ length(): number;
+ /** Updates this binary with byte_value */
+ put(byte_value: number | string): void;
+ /** Reads length bytes starting at position. */
+ read(position: number, length: number): Buffer;
+ /** Returns the value of this binary as a string. */
+ value(): string;
+ /** Writes a buffer or string to the binary */
+ write(buffer: Buffer | string, offset: number): void;
}
export class Code {
constructor(code: string | Function, scope?: any);
@@ -45,15 +57,63 @@ export class DBRef {
constructor(namespace: string, oid: ObjectID, db?: string);
}
export class Double {
- constructor (value: number);
+ constructor(value: number);
+
+ valueOf(): number;
}
export class Long {
+ static MAX_VALUE: Long;
+ static MIN_VALUE: Long;
+ static NEG_ONE: Long;
+ static ONE: Long;
+ static ZERO: Long;
+
static fromInt(i: number): Long;
static fromNumber(n: number): Long;
static fromBits(lowBits: number, highBits: number): Long;
static fromString(s: string, opt_radix?: number): Long;
constructor(low: number, high: number);
+
+ add(other: Long): Long;
+ and(other: Long): Long;
+ compare(other: Long): number;
+ div(other: Long): Long;
+ equals(other: Long): boolean;
+ getHighBits(): number;
+ getLowBits(): number;
+ getLowBitsUnsigned(): number;
+ getNumBitsAbs(): number;
+ greaterThan(other: Long): number;
+ greaterThanOrEqual(other: Long): number;
+ isNegative(): boolean;
+ isOdd(): boolean;
+ isZero(): boolean;
+ lessThan(other: Long): boolean;
+ lessThanOrEqual(other: Long): boolean;
+ modulo(other: Long): Long;
+ multiply(other: Long): Long;
+ negate(): Long;
+ not(): Long;
+ notEquals(other: Long): boolean;
+ or(other: Long): Long;
+ shiftLeft(other: number): Long;
+ shiftRight(other: number): Long;
+ shiftRightUnsigned(other: number): Long;
+ subtract(other: Long): Long;
+ toInt(): number;
+ toJSON(): string;
+ toNumber(): number;
+ toString(radix?: number): string;
+ xor(other: Long): Long;
+}
+export class Decimal128 {
+ static fromString(s: string): Decimal128;
+
+ constructor(bytes: Buffer);
+
+ toJSON(): string;
+ toString(): string;
}
export class MaxKey {
constructor();
@@ -61,17 +121,56 @@ export class MaxKey {
export class MinKey {
constructor();
}
-export class ObjectId {
- static createPk(): ObjectId;
- static createFromTime(time: number): ObjectId;
- static createFromHexString(hexString: string): ObjectId;
- static isValid(id: number | string | ObjectId): boolean;
-
- constructor(id?: number | string | ObjectId);
- toHexString(): string;
+export class ObjectID {
+ /**
+ * Create a new ObjectID instance
+ * @param {(string|number|ObjectID)} id Can be a 24 byte hex string, 12 byte binary string or a Number.
+ */
+ constructor(id?: string | number | ObjectID);
+ /** The generation time of this ObjectID instance */
+ generationTime: number;
+ /**
+ * Creates an ObjectID from a hex string representation of an ObjectID.
+ * @param {string} hexString create a ObjectID from a passed in 24 byte hexstring.
+ * @return {ObjectID} return the created ObjectID
+ */
+ static createFromHexString(hexString: string): ObjectID;
+ /**
+ * Creates an ObjectID from a second based number, with the rest of the ObjectID zeroed out. Used for comparisons or sorting the ObjectID.
+ * @param {number} time an integer number representing a number of seconds.
+ * @return {ObjectID} return the created ObjectID
+ */
+ static createFromTime(time: number): ObjectID;
+ /**
+ * Checks if a value is a valid bson ObjectID
+ *
+ * @return {boolean} return true if the value is a valid bson ObjectID, return false otherwise.
+ */
+ static isValid(id: string | number | ObjectID): boolean;
+ /**
+ * Compares the equality of this ObjectID with `otherID`.
+ * @param {object} otherID ObjectID instance to compare against.
+ * @return {boolean} the result of comparing two ObjectID's
+ */
+ equals(otherID: ObjectID): boolean;
+ /**
+ * Generate a 12 byte id string used in ObjectID's
+ * @param {number} time optional parameter allowing to pass in a second based timestamp.
+ * @return {string} return the 12 byte id binary string.
+ */
+ generate(time?: number): string;
+ /**
+ * Returns the generation date (accurate up to the second) that this ID was generated.
+ * @return {date} the generation date
+ */
getTimestamp(): Date;
+ /**
+ * Return the ObjectID id as a 24 byte hex string representation
+ * @return {string} return the 24 byte hex string representation.
+ */
+ toHexString(): string;
}
-export type ObjectID = ObjectId;
+export { ObjectID as ObjectId };
export class BSONRegExp {
constructor(pattern: string, options: string);
}
@@ -79,10 +178,48 @@ export class Symbol {
constructor(value: string);
}
export class Timestamp {
- static fromInt(i: number): Timestamp;
- static fromNumber(n: number): Timestamp;
- static fromBits(lowBits: number, highBits: number): Timestamp;
- static fromString(s: string, opt_radix?: number): Timestamp;
-
constructor(low: number, high: number);
+
+ static MAX_VALUE: Timestamp;
+ static MIN_VALUE: Timestamp;
+ static NEG_ONE: Timestamp;
+ static ONE: Timestamp;
+ static ZERO: Timestamp;
+
+ static fromBits(lowBits: number, highBits: number): Timestamp;
+ static fromInt(value: number): Timestamp;
+ static fromNumber(value: number): Timestamp;
+ static fromString(str: string, radix?: number): Timestamp;
+
+ add(other: Timestamp): Timestamp;
+ and(other: Timestamp): Timestamp;
+ compare(other: Timestamp): number;
+ div(other: Timestamp): Timestamp;
+ equals(other: Timestamp): boolean;
+ getHighBits(): number;
+ getLowBits(): number;
+ getLowBitsUnsigned(): number;
+ getNumBitsAbs(): number;
+ greaterThan(other: Timestamp): number;
+ greaterThanOrEqual(other: Timestamp): number;
+ isNegative(): boolean;
+ isOdd(): boolean;
+ isZero(): boolean;
+ lessThan(other: Timestamp): boolean;
+ lessThanOrEqual(other: Timestamp): boolean;
+ modulo(other: Timestamp): Timestamp;
+ multiply(other: Timestamp): Timestamp;
+ negate(): Timestamp;
+ not(): Timestamp;
+ notEquals(other: Timestamp): boolean;
+ or(other: Timestamp): Timestamp;
+ shiftLeft(other: number): Timestamp;
+ shiftRight(other: number): Timestamp;
+ shiftRightUnsigned(other: number): Timestamp;
+ subtract(other: Timestamp): Timestamp;
+ toInt(): number;
+ toJSON(): string;
+ toNumber(): number;
+ toString(radix?: number): string;
+ xor(other: Timestamp): Timestamp;
}
diff --git a/types/bugsnag/bugsnag-tests.ts b/types/bugsnag/bugsnag-tests.ts
deleted file mode 100644
index 033abe2a34..0000000000
--- a/types/bugsnag/bugsnag-tests.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-Bugsnag.apiKey = "API-KEY";
-
-Bugsnag.releaseStage = "beta";
-Bugsnag.appVersion = "2.4.56";
-
-Bugsnag.user = {
- name: "Robert K. User",
- email: "robbie@example.com"
-};
-
-Bugsnag.metaData = {
- account: {
- name: "Acme Co",
- plan: "hacker"
- }
-}
-
-Bugsnag.notifyException(new Error("Something broke"));
-
-Bugsnag.notify("Serious Problem", "We are out of cookies");
-
-Bugsnag.notify("Serious Problem",
- "We are out of cookies",
- { remaining_snacks: ["carrots", "biscuits"] },
- "error");
diff --git a/types/bugsnag/index.d.ts b/types/bugsnag/index.d.ts
deleted file mode 100644
index 1ba14de2ef..0000000000
--- a/types/bugsnag/index.d.ts
+++ /dev/null
@@ -1,90 +0,0 @@
-// Type definitions for Bugsnag v2.5.0
-// Project: https://github.com/bugsnag/bugsnag-js
-// Definitions by: Delisa Mason
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-interface BugsnagUser {
- id?: string,
- name?: string,
- email?: string
-}
-
-interface BugsnagStatic {
- /** Bugsnag project API key */
- apiKey: string;
- /** The client application version */
- appVersion: string;
- /** true if Bugsnag should be automatically notified of errors which are
- * sent to `window.onerror`
- */
- autoNotify: boolean;
- /** Callback run before error reports are sent to Bugsnag.
- * Payload and metadata information can be altered or removed altogether.
- * To cancel sending the report, return false from this function.
- */
- beforeNotify: (payload: any, metaData: any) => boolean;
- /** The pathname of the current page, not including the fragment identifier
- * nor search parameters
- */
- context: string;
- /** Disables console-based logging. Defaults to false. */
- disableLog: boolean;
- /** The address used to send errors to Bugsnag. The default is
- * `https://notify.bugsnag.com/js`
- */
- endpoint: string;
- /** Enables sending inline scripts on the page to Bugsnag to assist with
- * debugging. Defaults to true
- */
- inlineScript: boolean;
- /** The maximum depth to parse the error stack */
- maxDepth: number;
- /** Additional metadata to send to Bugsnag with every error. */
- metaData: any;
- /** The method used for the notify request. The default is a temporary
- * JavaScript image object, however Chrome apps/extensions and other
- * applications where XHR is needed can use `xhr` instead.
- */
- notifyHandler: string;
- /** The releases stages during which Bugsnag will be notified of errors. */
- notifyReleaseStages: string[];
- /** The recorded root of the project. The default is the current host
- * address (protocol and domain).
- */
- projectRoot: string;
- /** Current phase of the application release process. The default is
- * `production`
- */
- releaseStage: string;
- /** Information about the current user which is sent to Bugsnag with
- * exception reports
- */
- user: BugsnagUser;
-
- /** Continue catching exceptions after the page error limit is reached.
- * Useful for long-running single-page apps
- */
- refresh(): void;
-
- /** Remove Bugsnag from the window object and restore the previous
- * binding
- */
- noConflict(): BugsnagStatic;
-
- /** Send caught exceptions to Bugsnag. Valid severity values are `info`,
- * `warning`, and `error`, in order of increasing severity.
- */
- notifyException(exception: Error, name?: string, metaData?: any,
- severity?: string): void;
-
- /** Send custom errors to Bugsnag */
- notify(name: string, message: string, metaData?: any,
- severity?: string): void;
-}
-
-declare var Bugsnag: BugsnagStatic;
-
-declare module "Bugsnag" {
- export = Bugsnag;
-}
-
diff --git a/types/bugsnag/tsconfig.json b/types/bugsnag/tsconfig.json
deleted file mode 100644
index 480f98a223..0000000000
--- a/types/bugsnag/tsconfig.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "compilerOptions": {
- "module": "commonjs",
- "lib": [
- "es6"
- ],
- "noImplicitAny": true,
- "noImplicitThis": true,
- "strictNullChecks": false,
- "baseUrl": "../",
- "typeRoots": [
- "../"
- ],
- "types": [],
- "noEmit": true,
- "forceConsistentCasingInFileNames": true
- },
- "files": [
- "index.d.ts",
- "bugsnag-tests.ts"
- ]
-}
\ No newline at end of file
diff --git a/types/chai/chai-tests.ts b/types/chai/chai-tests.ts
index 7f104d07e5..756212995d 100644
--- a/types/chai/chai-tests.ts
+++ b/types/chai/chai-tests.ts
@@ -1,16 +1,11 @@
+import * as chai from "chai";
-import chai = require('chai');
+const expect = chai.expect;
+const assert = chai.assert;
+const should = chai.should();
-// ReSharper disable WrongExpressionStatement
-
-var expect = chai.expect;
-var assert = chai.assert;
-var should = chai.should();
-declare var err: Function;
-
-function chaiVersion() {
- expect(chai).to.have.property('version');
- (<{}>chai).should.have.property('version');
+function chaiVersion(): string {
+ return chai.version;
}
function assertion() {
@@ -22,28 +17,13 @@ function assertion() {
}
function fail() {
- err(() => {
- should.fail('foo', 'bar');
- }, 'expected fail to throw an AssertionError');
- err(() => {
- should.fail('foo', 'bar', 'should fail');
- }, 'expected fail to throw an AssertionError');
- err(() => {
- should.fail('foo', 'bar', 'should fail', 'equal');
- }, 'expected fail to throw an AssertionError');
+ should.fail('foo', 'bar');
+ should.fail('foo', 'bar', 'should fail');
- err(() => {
- expect.fail('foo', 'bar');
- }, 'expected fail to throw an AssertionError');
- err(() => {
- expect.fail('foo', 'bar', 'should fail');
- }, 'expected fail to throw an AssertionError');
- err(() => {
- expect.fail('foo', 'bar', 'should fail', 'equal');
- }, 'expected fail to throw an AssertionError');
+ expect.fail('foo', 'bar');
+ expect.fail('foo', 'bar', 'should fail');
}
-// ReSharper disable once InconsistentNaming
function _true() {
expect(true).to.be.true;
true.should.be.true;
@@ -52,10 +32,8 @@ function _true() {
expect(1).to.not.be.true;
(1).should.not.be.true;
- err(() => {
- expect('test').to.be.true;
- 'test'.should.be.true;
- }, 'expected \'test\' to be true');
+ expect('test').to.be.true;
+ 'test'.should.be.true;
}
function ok() {
@@ -68,15 +46,11 @@ function ok() {
expect(0).to.not.be.ok;
(0).should.not.be.ok;
- err(() => {
- expect('').to.be.ok;
- ''.should.be.ok;
- }, 'expected \'\' to be truthy');
+ expect('').to.be.ok;
+ ''.should.be.ok;
- err(() => {
- expect('test').to.not.be.ok;
- 'test'.should.not.be.ok;
- }, 'expected \'test\' to be falsy');
+ expect('test').to.not.be.ok;
+ 'test'.should.not.be.ok;
}
function _false() {
@@ -87,10 +61,8 @@ function _false() {
expect(0).to.not.be.false;
(0).should.not.be.false;
- err(() => {
- expect('').to.be.false;
- ''.should.be.false;
- }, 'expected \'\' to be false');
+ expect('').to.be.false;
+ ''.should.be.false;
}
function _null() {
@@ -99,10 +71,8 @@ function _null() {
expect(false).to.not.be.null;
false.should.not.be.null;
- err(() => {
- expect('').to.be.null;
- ''.should.be.null;
- }, 'expected \'\' to be null');
+ expect('').to.be.null;
+ ''.should.be.null;
}
function _undefined() {
@@ -111,10 +81,8 @@ function _undefined() {
expect(null).to.not.be.undefined;
should.not.equal(null, undefined);
- err(() => {
- expect('').to.be.undefined;
- ''.should.be.undefined;
- }, 'expected \'\' to be undefined');
+ expect('').to.be.undefined;
+ ''.should.be.undefined;
}
function _NaN() {
@@ -127,7 +95,7 @@ function _NaN() {
}
function exist() {
- var foo = 'bar';
+ const foo = 'bar';
expect(foo).to.exist;
should.exist(foo);
expect(void (0)).to.not.exist;
@@ -135,7 +103,7 @@ function exist() {
}
function argumentsTest() {
- var args = arguments;
+ const args = arguments;
expect(args).to.be.arguments;
args.should.be.arguments;
expect([]).to.not.be.arguments;
@@ -155,10 +123,8 @@ function _typeof() {
expect('test').to.be.a('string');
'test'.should.be.a('string');
- err(() => {
- expect('test').to.not.be.a('string');
- 'test'.should.not.be.a('string');
- }, 'expected \'test\' not to be a string');
+ expect('test').to.not.be.a('string');
+ 'test'.should.not.be.a('string');
expect(arguments).to.be.an('arguments');
arguments.should.be.an('arguments');
@@ -185,10 +151,8 @@ function _typeof() {
expect(null).to.be.a('null');
// N.B. previous line has no should equivalent
- err(() => {
- expect(5).to.not.be.a('number', 'blah');
- (5).should.not.be.a('number', 'blah');
- }, 'blah: expected 5 not to be a number');
+ expect(5).to.not.be.a('number', 'blah');
+ (5).should.not.be.a('number', 'blah');
}
class Foo { }
@@ -196,10 +160,8 @@ function _instanceof() {
expect(new Foo()).to.be.an.instanceof(Foo);
(new Foo()).should.be.an.instanceof(Foo);
- err(() => {
- expect(3).to.an.instanceof(Foo, 'blah');
- (3).should.an.instanceof(Foo, 'blah');
- }, 'blah: expected 3 to be an instance of Foo');
+ expect(3).to.an.instanceof(Foo, 'blah');
+ (3).should.an.instanceof(Foo, 'blah');
}
function within() {
@@ -216,25 +178,17 @@ function within() {
expect([1, 2, 3]).to.have.length.within(2, 4);
[1, 2, 3].should.have.length.within(2, 4);
- err(() => {
- expect(5).to.not.be.within(4, 6, 'blah');
- (5).should.not.be.within(4, 6, 'blah');
- }, 'blah: expected 5 to not be within 4..6', 'blah');
+ expect(5).to.not.be.within(4, 6, 'blah');
+ (5).should.not.be.within(4, 6, 'blah');
- err(() => {
- expect(10).to.be.within(50, 100, 'blah');
- (10).should.be.within(50, 100, 'blah');
- }, 'blah: expected 10 to be within 50..100');
+ expect(10).to.be.within(50, 100, 'blah');
+ (10).should.be.within(50, 100, 'blah');
- err(() => {
- expect('foo').to.have.length.within(5, 7, 'blah');
- 'foo'.should.have.length.within(5, 7, 'blah');
- }, 'blah: expected \'foo\' to have a length within 5..7');
+ expect('foo').to.have.length.within(5, 7, 'blah');
+ 'foo'.should.have.length.within(5, 7, 'blah');
- err(() => {
- expect([1, 2, 3]).to.have.length.within(5, 7, 'blah');
- [1, 2, 3].should.have.length.within(5, 7, 'blah');
- }, 'blah: expected [ 1, 2, 3 ] to have a length within 5..7');
+ expect([1, 2, 3]).to.have.length.within(5, 7, 'blah');
+ [1, 2, 3].should.have.length.within(5, 7, 'blah');
}
function above() {
@@ -251,25 +205,17 @@ function above() {
expect([1, 2, 3]).to.have.length.above(2);
[1, 2, 3].should.have.length.above(2);
- err(() => {
- expect(5).to.be.above(6, 'blah');
- (5).should.be.above(6, 'blah');
- }, 'blah: expected 5 to be above 6', 'blah');
+ expect(5).to.be.above(6, 'blah');
+ (5).should.be.above(6, 'blah');
- err(() => {
- expect(10).to.not.be.above(6, 'blah');
- (10).should.not.be.above(6, 'blah');
- }, 'blah: expected 10 to be at most 6');
+ expect(10).to.not.be.above(6, 'blah');
+ (10).should.not.be.above(6, 'blah');
- err(() => {
- expect('foo').to.have.length.above(4, 'blah');
- 'foo'.should.have.length.above(4, 'blah');
- }, 'blah: expected \'foo\' to have a length above 4 but got 3');
+ expect('foo').to.have.length.above(4, 'blah');
+ 'foo'.should.have.length.above(4, 'blah');
- err(() => {
- expect([1, 2, 3]).to.have.length.above(4, 'blah');
- [1, 2, 3].should.have.length.above(4, 'blah');
- }, 'blah: expected [ 1, 2, 3 ] to have a length above 4 but got 3');
+ expect([1, 2, 3]).to.have.length.above(4, 'blah');
+ [1, 2, 3].should.have.length.above(4, 'blah');
}
function least() {
@@ -284,30 +230,20 @@ function least() {
expect([1, 2, 3]).to.have.length.of.at.least(2);
[1, 2, 3].should.have.length.of.at.least(2);
- err(() => {
- expect(5).to.be.at.least(6, 'blah');
- (5).should.be.at.least(6, 'blah');
- }, 'blah: expected 5 to be at least 6', 'blah');
+ expect(5).to.be.at.least(6, 'blah');
+ (5).should.be.at.least(6, 'blah');
- err(() => {
- expect(10).to.not.be.at.least(6, 'blah');
- (10).should.not.be.at.least(6, 'blah');
- }, 'blah: expected 10 to be below 6');
+ expect(10).to.not.be.at.least(6, 'blah');
+ (10).should.not.be.at.least(6, 'blah');
- err(() => {
- expect('foo').to.have.length.of.at.least(4, 'blah');
- 'foo'.should.have.length.of.at.least(4, 'blah');
- }, 'blah: expected \'foo\' to have a length at least 4 but got 3');
+ expect('foo').to.have.length.of.at.least(4, 'blah');
+ 'foo'.should.have.length.of.at.least(4, 'blah');
- err(() => {
- expect([1, 2, 3]).to.have.length.of.at.least(4, 'blah');
- [1, 2, 3].should.have.length.of.at.least(4, 'blah');
- }, 'blah: expected [ 1, 2, 3 ] to have a length at least 4 but got 3');
+ expect([1, 2, 3]).to.have.length.of.at.least(4, 'blah');
+ [1, 2, 3].should.have.length.of.at.least(4, 'blah');
- err(() => {
- expect([1, 2, 3, 4]).to.not.have.length.of.at.least(4, 'blah');
- [1, 2, 3, 4].should.not.have.length.of.at.least(4, 'blah');
- }, 'blah: expected [ 1, 2, 3, 4 ] to have a length below 4');
+ expect([1, 2, 3, 4]).to.not.have.length.of.at.least(4, 'blah');
+ [1, 2, 3, 4].should.not.have.length.of.at.least(4, 'blah');
}
function below() {
@@ -324,25 +260,17 @@ function below() {
expect([1, 2, 3]).to.have.length.below(4);
[1, 2, 3].should.have.length.below(4);
- err(() => {
- expect(6).to.be.below(5, 'blah');
- (6).should.be.below(5, 'blah');
- }, 'blah: expected 6 to be below 5');
+ expect(6).to.be.below(5, 'blah');
+ (6).should.be.below(5, 'blah');
- err(() => {
- expect(6).to.not.be.below(10, 'blah');
- (6).should.not.be.below(10, 'blah');
- }, 'blah: expected 6 to be at least 10');
+ expect(6).to.not.be.below(10, 'blah');
+ (6).should.not.be.below(10, 'blah');
- err(() => {
- expect('foo').to.have.length.below(2, 'blah');
- 'foo'.should.have.length.below(2, 'blah');
- }, 'blah: expected \'foo\' to have a length below 2 but got 3');
+ expect('foo').to.have.length.below(2, 'blah');
+ 'foo'.should.have.length.below(2, 'blah');
- err(() => {
- expect([1, 2, 3]).to.have.length.below(2, 'blah');
- [1, 2, 3].should.have.length.below(2, 'blah');
- }, 'blah: expected [ 1, 2, 3 ] to have a length below 2 but got 3');
+ expect([1, 2, 3]).to.have.length.below(2, 'blah');
+ [1, 2, 3].should.have.length.below(2, 'blah');
}
function most() {
@@ -359,30 +287,20 @@ function most() {
expect([1, 2, 3]).to.have.length.of.at.most(4);
[1, 2, 3].should.have.length.of.at.most(4);
- err(() => {
- expect(6).to.be.at.most(5, 'blah');
- (6).should.be.at.most(5, 'blah');
- }, 'blah: expected 6 to be at most 5');
+ expect(6).to.be.at.most(5, 'blah');
+ (6).should.be.at.most(5, 'blah');
- err(() => {
- expect(6).to.not.be.at.most(10, 'blah');
- (6).should.not.be.at.most(10, 'blah');
- }, 'blah: expected 6 to be above 10');
+ expect(6).to.not.be.at.most(10, 'blah');
+ (6).should.not.be.at.most(10, 'blah');
- err(() => {
- expect('foo').to.have.length.of.at.most(2, 'blah');
- 'foo'.should.have.length.of.at.most(2, 'blah');
- }, 'blah: expected \'foo\' to have a length at most 2 but got 3');
+ expect('foo').to.have.length.of.at.most(2, 'blah');
+ 'foo'.should.have.length.of.at.most(2, 'blah');
- err(() => {
- expect([1, 2, 3]).to.have.length.of.at.most(2, 'blah');
- [1, 2, 3].should.have.length.of.at.most(2, 'blah');
- }, 'blah: expected [ 1, 2, 3 ] to have a length at most 2 but got 3');
+ expect([1, 2, 3]).to.have.length.of.at.most(2, 'blah');
+ [1, 2, 3].should.have.length.of.at.most(2, 'blah');
- err(() => {
- expect([1, 2]).to.not.have.length.of.at.most(2, 'blah');
- [1, 2].should.not.have.length.of.at.most(2, 'blah');
- }, 'blah: expected [ 1, 2 ] to have a length above 2');
+ expect([1, 2]).to.not.have.length.of.at.most(2, 'blah');
+ [1, 2].should.not.have.length.of.at.most(2, 'blah');
}
function match() {
@@ -394,15 +312,11 @@ function match() {
expect('foobar').matches(/^foo/);
'foobar'.should.not.matches(/^bar/);
- err(() => {
- expect('foobar').to.match(/^bar/i, 'blah');
- 'foobar'.should.match(/^bar/i, 'blah');
- }, 'blah: expected \'foobar\' to match /^bar/i');
+ expect('foobar').to.match(/^bar/i, 'blah');
+ 'foobar'.should.match(/^bar/i, 'blah');
- err(() => {
- expect('foobar').to.not.match(/^foo/i, 'blah');
- 'foobar'.should.not.match(/^foo/i, 'blah');
- }, 'blah: expected \'foobar\' not to match /^foo/i');
+ expect('foobar').to.not.match(/^foo/i, 'blah');
+ 'foobar'.should.not.match(/^foo/i, 'blah');
}
function length2() {
@@ -413,15 +327,11 @@ function length2() {
expect([1, 2, 3]).to.have.length(3);
[1, 2, 3].should.have.length(3);
- err(() => {
- expect(4).to.have.length(3, 'blah');
- (4).should.have.length(3, 'blah');
- }, 'blah: expected 4 to have a property \'length\'');
+ expect(4).to.have.length(3, 'blah');
+ (4).should.have.length(3, 'blah');
- err(() => {
- expect('asd').to.not.have.length(3, 'blah');
- 'asd'.should.not.have.length(3, 'blah');
- }, 'blah: expected \'asd\' to not have a length of 3');
+ expect('asd').to.not.have.length(3, 'blah');
+ 'asd'.should.not.have.length(3, 'blah');
}
function eql() {
@@ -434,10 +344,8 @@ function eql() {
expect('4').to.not.eql(4);
'4'.should.not.eql(4);
- err(() => {
- expect(4).to.eql(3, 'blah');
- (4).should.eql(3, 'blah');
- }, 'blah: expected 4 to deeply equal 3');
+ expect(4).to.eql(3, 'blah');
+ (4).should.eql(3, 'blah');
}
class Buffer {
@@ -448,10 +356,8 @@ function buffer() {
expect(new Buffer([1])).to.eql(new Buffer([1]));
(new Buffer([1])).should.eql(new Buffer([1]));
- err(() => {
- expect(new Buffer([0])).to.eql(new Buffer([1]));
- (new Buffer([0])).should.eql(new Buffer([1]));
- }, 'expected to deeply equal ');
+ expect(new Buffer([0])).to.eql(new Buffer([1]));
+ (new Buffer([0])).should.eql(new Buffer([1]));
}
function equal2() {
@@ -462,17 +368,13 @@ function equal2() {
(1).should.equal(1);
should.equal(1, 1);
- err(() => {
- expect(4).to.equal(3, 'blah');
- (4).should.equal(3, 'blah');
- should.equal(4, 3, 'blah');
- }, 'blah: expected 4 to equal 3');
+ expect(4).to.equal(3, 'blah');
+ (4).should.equal(3, 'blah');
+ should.equal(4, 3, 'blah');
- err(() => {
- expect('4').to.equal(4, 'blah');
- '4'.should.equal(4, 'blah');
- should.equal(4, 4, 'blah');
- }, 'blah: expected \'4\' to equal 4');
+ expect('4').to.equal(4, 'blah');
+ '4'.should.equal(4, 'blah');
+ should.equal(4, 4, 'blah');
}
function deepEqual() {
@@ -497,10 +399,9 @@ function deepEqual2() {
expect(/a/m).not.to.deep.equal(/b/m);
}
-// ReSharper disable once InconsistentNaming
function deepEqual3() {
- var a = new Date(1, 2, 3);
- var b = new Date(4, 5, 6);
+ const a = new Date(1, 2, 3);
+ const b = new Date(4, 5, 6);
expect(a).to.deep.equal(a);
a.should.deep.equal(a);
expect(a).not.to.deep.equal(b);
@@ -541,46 +442,30 @@ function empty() {
expect({ foo: 'bar' }).not.to.be.empty;
({ foo: 'bar' }).should.not.be.empty;
- err(() => {
- expect('').not.to.be.empty;
- ''.should.not.be.empty;
- }, 'expected \'\' not to be empty');
+ expect('').not.to.be.empty;
+ ''.should.not.be.empty;
- err(() => {
- expect('foo').to.be.empty;
- 'foo'.should.be.empty;
- 'foo'.should.be.empty;
- }, 'expected \'foo\' to be empty');
+ expect('foo').to.be.empty;
+ 'foo'.should.be.empty;
+ 'foo'.should.be.empty;
- err(() => {
- expect([]).not.to.be.empty;
- [].should.not.be.empty;
- }, 'expected [] not to be empty');
+ expect([]).not.to.be.empty;
+ [].should.not.be.empty;
- err(() => {
- expect(['foo']).to.be.empty;
- ['foo'].should.be.empty;
- }, 'expected [ \'foo\' ] to be empty');
+ expect(['foo']).to.be.empty;
+ ['foo'].should.be.empty;
- err(() => {
- expect(new FakeArgs).not.to.be.empty;
- (new FakeArgs).should.not.be.empty;
- }, 'expected { length: 0 } not to be empty');
+ expect(new FakeArgs).not.to.be.empty;
+ (new FakeArgs).should.not.be.empty;
- err(() => {
- expect({ arguments: 0 }).to.be.empty;
- ({ arguments: 0 }).should.be.empty;
- }, 'expected { arguments: 0 } to be empty');
+ expect({ arguments: 0 }).to.be.empty;
+ ({ arguments: 0 }).should.be.empty;
- err(() => {
- expect({}).not.to.be.empty;
- ({}).should.not.be.empty;
- }, 'expected {} not to be empty');
+ expect({}).not.to.be.empty;
+ ({}).should.not.be.empty;
- err(() => {
- expect({ foo: 'bar' }).to.be.empty;
- ({ foo: 'bar' }).should.be.empty;
- }, 'expected { foo: \'bar\' } to be empty');
+ expect({ foo: 'bar' }).to.be.empty;
+ ({ foo: 'bar' }).should.be.empty;
}
function property() {
@@ -596,15 +481,13 @@ function property() {
.to.not.have.property('foo.bar');
({ foo: { bar: 'baz' } }).should.not.have.property('foo.bar');
- err(() => {
- expect('asd').to.have.property('foo');
- 'asd'.should.have.property('foo');
- }, 'expected \'asd\' to have a property \'foo\'');
- err(() => {
- expect({ foo: { bar: 'baz' } })
- .to.have.property('foo.bar');
- ({ foo: { bar: 'baz' } }).should.have.property('foo.bar');
- }, 'expected { foo: { bar: \'baz\' } } to have a property \'foo.bar\'');
+ expect('asd').to.have.property('foo');
+ 'asd'.should.have.property('foo');
+
+ expect({ foo: { bar: 'baz' } })
+ .to.have.property('foo.bar');
+
+ ({ foo: { bar: 'baz' } }).should.have.property('foo.bar');
}
function deepProperty() {
@@ -617,12 +500,10 @@ function deepProperty() {
({ foo: { bar: 'baz' } }).should
.have.deep.property('foo.bar');
- err(() => {
- expect({ 'foo.bar': 'baz' })
- .to.have.deep.property('foo.bar');
- ({ 'foo.bar': 'baz' }).should
- .have.deep.property('foo.bar');
- }, 'expected { \'foo.bar\': \'baz\' } to have a deep property \'foo.bar\'');
+ expect({ 'foo.bar': 'baz' })
+ .to.have.deep.property('foo.bar');
+ ({ 'foo.bar': 'baz' }).should
+ .have.deep.property('foo.bar');
}
function property2() {
@@ -631,25 +512,17 @@ function property2() {
expect('asd').to.have.property('constructor', String);
'asd'.should.have.property('constructor', String);
- err(() => {
- expect('asd').to.have.property('length', 4, 'blah');
- 'asd'.should.have.property('length', 4, 'blah');
- }, 'blah: expected \'asd\' to have a property \'length\' of 4, but got 3');
+ expect('asd').to.have.property('length', 4, 'blah');
+ 'asd'.should.have.property('length', 4, 'blah');
- err(() => {
- expect('asd').to.not.have.property('length', 3, 'blah');
- 'asd'.should.not.have.property('length', 3, 'blah');
- }, 'blah: expected \'asd\' to not have a property \'length\' of 3');
+ expect('asd').to.not.have.property('length', 3, 'blah');
+ 'asd'.should.not.have.property('length', 3, 'blah');
- err(() => {
- expect('asd').to.not.have.property('foo', 3, 'blah');
- 'asd'.should.not.have.property('foo', 3, 'blah');
- }, 'blah: \'asd\' has no property \'foo\'');
+ expect('asd').to.not.have.property('foo', 3, 'blah');
+ 'asd'.should.not.have.property('foo', 3, 'blah');
- err(() => {
- expect('asd').to.have.property('constructor', Number, 'blah');
- 'asd'.should.have.property('constructor', Number, 'blah');
- }, 'blah: expected \'asd\' to have a property \'constructor\' of [Function: Number], but got [Function: String]');
+ expect('asd').to.have.property('constructor', Number, 'blah');
+ 'asd'.should.have.property('constructor', Number, 'blah');
}
function deepProperty2() {
@@ -658,24 +531,18 @@ function deepProperty2() {
({ foo: { bar: 'baz' } }).should
.have.deep.property('foo.bar', 'baz');
- err(() => {
- expect({ foo: { bar: 'baz' } })
- .to.have.deep.property('foo.bar', 'quux', 'blah');
- ({ foo: { bar: 'baz' } }).should
- .have.deep.property('foo.bar', 'quux', 'blah');
- }, 'blah: expected { foo: { bar: \'baz\' } } to have a deep property \'foo.bar\' of \'quux\', but got \'baz\'');
- err(() => {
- expect({ foo: { bar: 'baz' } })
- .to.not.have.deep.property('foo.bar', 'baz', 'blah');
- ({ foo: { bar: 'baz' } }).should
- .not.have.deep.property('foo.bar', 'baz', 'blah');
- }, 'blah: expected { foo: { bar: \'baz\' } } to not have a deep property \'foo.bar\' of \'baz\'');
- err(() => {
- expect({ foo: 5 })
- .to.not.have.deep.property('foo.bar', 'baz', 'blah');
- ({ foo: 5 }).should
- .not.have.deep.property('foo.bar', 'baz', 'blah');
- }, 'blah: { foo: 5 } has no deep property \'foo.bar\'');
+ expect({ foo: { bar: 'baz' } })
+ .to.have.deep.property('foo.bar', 'quux', 'blah');
+ ({ foo: { bar: 'baz' } }).should
+ .have.deep.property('foo.bar', 'quux', 'blah');
+ expect({ foo: { bar: 'baz' } })
+ .to.not.have.deep.property('foo.bar', 'baz', 'blah');
+ ({ foo: { bar: 'baz' } }).should
+ .not.have.deep.property('foo.bar', 'baz', 'blah');
+ expect({ foo: 5 })
+ .to.not.have.deep.property('foo.bar', 'baz', 'blah');
+ ({ foo: 5 }).should
+ .not.have.deep.property('foo.bar', 'baz', 'blah');
}
function ownProperty() {
@@ -686,10 +553,8 @@ function ownProperty() {
expect({ length: 12 }).to.have.ownProperty('length');
({ length: 12 }).should.have.ownProperty('length');
- err(() => {
- expect({ length: 12 }).to.not.have.ownProperty('length', 'blah');
- ({ length: 12 }).should.not.have.ownProperty('length', 'blah');
- }, 'blah: expected { length: 12 } to not have own property \'length\'');
+ expect({ length: 12 }).to.not.have.ownProperty('length', 'blah');
+ ({ length: 12 }).should.not.have.ownProperty('length', 'blah');
}
function ownPropertyDescriptor() {
@@ -714,20 +579,14 @@ function string() {
expect('foobar').to.not.have.string('baz');
'foobar'.should.not.have.string('baz');
- err(() => {
- expect(3).to.have.string('baz');
- (3).should.have.string('baz');
- }, 'expected 3 to be a string');
+ expect(3).to.have.string('baz');
+ (3).should.have.string('baz');
- err(() => {
- expect('foobar').to.have.string('baz', 'blah');
- 'foobar'.should.have.string('baz', 'blah');
- }, 'blah: expected \'foobar\' to contain \'baz\'');
+ expect('foobar').to.have.string('baz', 'blah');
+ 'foobar'.should.have.string('baz', 'blah');
- err(() => {
- expect('foobar').to.not.have.string('bar', 'blah');
- 'foobar'.should.not.have.string('bar', 'blah');
- }, 'blah: expected \'foobar\' to not contain \'bar\'');
+ expect('foobar').to.not.have.string('bar', 'blah');
+ 'foobar'.should.not.have.string('bar', 'blah');
}
function include() {
@@ -743,20 +602,15 @@ function include() {
['foo', 'bar'].should.not.include('baz');
expect(['foo', 'bar']).to.not.include(1);
['foo', 'bar'].should.not.include(1);
- // alias
expect(['foo', 'bar']).includes('foo');
['foo', 'bar'].should.includes('foo');
- err(() => {
- expect(['foo']).to.include('bar', 'blah');
- ['foo'].should.include('bar', 'blah');
- }, 'blah: expected [ \'foo\' ] to include \'bar\'');
+ expect(['foo']).to.include('bar', 'blah');
+ ['foo'].should.include('bar', 'blah');
- err(() => {
- expect(['bar', 'foo']).to.not.include('foo', 'blah');
- ['bar', 'foo'].should.not.include('foo', 'blah');
- }, 'blah: expected [ \'bar\', \'foo\' ] to not include \'foo\'');
+ expect(['bar', 'foo']).to.not.include('foo', 'blah');
+ ['bar', 'foo'].should.not.include('foo', 'blah');
}
function keys() {
@@ -803,76 +657,50 @@ function keys() {
expect({ foo: 1, bar: 2 }).to.not.contain.keys('baz', 'foo');
({ foo: 1, bar: 2 }).should.not.contain.keys('baz', 'foo');
- err(() => {
- expect({ foo: 1 }).to.have.keys();
- ({ foo: 1 }).should.have.keys();
- }, 'keys required');
+ expect({ foo: 1 }).to.have.keys();
+ ({ foo: 1 }).should.have.keys();
- err(() => {
- expect({ foo: 1 }).to.have.keys([]);
- ({ foo: 1 }).should.have.keys([]);
- }, 'keys required');
+ expect({ foo: 1 }).to.have.keys([]);
+ ({ foo: 1 }).should.have.keys([]);
- err(() => {
- expect({ foo: 1 }).to.not.have.keys([]);
- ({ foo: 1 }).should.not.have.keys([]);
- }, 'keys required');
+ expect({ foo: 1 }).to.not.have.keys([]);
+ ({ foo: 1 }).should.not.have.keys([]);
- err(() => {
- expect({ foo: 1 }).to.contain.keys([]);
- ({ foo: 1 }).should.contain.keys([]);
- }, 'keys required');
+ expect({ foo: 1 }).to.contain.keys([]);
+ ({ foo: 1 }).should.contain.keys([]);
- err(() => {
- expect({ foo: 1 }).to.have.keys(['bar']);
- ({ foo: 1 }).should.have.keys(['bar']);
- }, 'expected { foo: 1 } to have key \'bar\'');
+ expect({ foo: 1 }).to.have.keys(['bar']);
+ ({ foo: 1 }).should.have.keys(['bar']);
- err(() => {
- expect({ foo: 1 }).to.have.keys(['bar', 'baz']);
- ({ foo: 1 }).should.have.keys(['bar', 'baz']);
- }, 'expected { foo: 1 } to have keys \'bar\', and \'baz\'');
+ expect({ foo: 1 }).to.have.keys(['bar', 'baz']);
+ ({ foo: 1 }).should.have.keys(['bar', 'baz']);
- err(() => {
- expect({ foo: 1 }).to.have.keys(['foo', 'bar', 'baz']);
- ({ foo: 1 }).should.have.keys(['foo', 'bar', 'baz']);
- }, 'expected { foo: 1 } to have keys \'foo\', \'bar\', and \'baz\'');
+ expect({ foo: 1 }).to.have.keys(['foo', 'bar', 'baz']);
+ ({ foo: 1 }).should.have.keys(['foo', 'bar', 'baz']);
- err(() => {
- expect({ foo: 1 }).to.not.have.keys(['foo']);
- ({ foo: 1 }).should.not.have.keys(['foo']);
- }, 'expected { foo: 1 } to not have key \'foo\'');
+ expect({ foo: 1 }).to.not.have.keys(['foo']);
+ ({ foo: 1 }).should.not.have.keys(['foo']);
- err(() => {
- expect({ foo: 1 }).to.not.have.keys(['foo']);
- ({ foo: 1 }).should.not.have.keys(['foo']);
- }, 'expected { foo: 1 } to not have key \'foo\'');
+ expect({ foo: 1 }).to.not.have.keys(['foo']);
+ ({ foo: 1 }).should.not.have.keys(['foo']);
- err(() => {
- expect({ foo: 1, bar: 2 }).to.not.have.keys(['foo', 'bar']);
- ({ foo: 1, bar: 2 }).should.not.have.keys(['foo', 'bar']);
- }, 'expected { foo: 1, bar: 2 } to not have keys \'foo\', and \'bar\'');
+ expect({ foo: 1, bar: 2 }).to.not.have.keys(['foo', 'bar']);
+ ({ foo: 1, bar: 2 }).should.not.have.keys(['foo', 'bar']);
- err(() => {
- expect({ foo: 1 }).to.not.contain.keys(['foo']);
- ({ foo: 1 }).should.not.contain.keys(['foo']);
- }, 'expected { foo: 1 } to not contain key \'foo\'');
+ expect({ foo: 1 }).to.not.contain.keys(['foo']);
+ ({ foo: 1 }).should.not.contain.keys(['foo']);
- err(() => {
- expect({ foo: 1 }).to.contain.keys('foo', 'bar');
- ({ foo: 1 }).should.contain.keys('foo', 'bar');
- }, 'expected { foo: 1 } to contain keys \'foo\', and \'bar\'');
+ expect({ foo: 1 }).to.contain.keys('foo', 'bar');
+ ({ foo: 1 }).should.contain.keys('foo', 'bar');
}
function chaining() {
- var tea = { name: 'chai', extras: ['milk', 'sugar', 'smile'] };
+ const tea = { name: 'chai', extras: ['milk', 'sugar', 'smile'] };
expect(tea).to.have.property('extras').with.lengthOf(3);
tea.should.have.property('extras').with.lengthOf(3);
- err(() => {
- expect(tea).to.have.property('extras').with.lengthOf(4);
- tea.should.have.property('extras').with.lengthOf(4);
- }, 'expected [ \'milk\', \'sugar\', \'smile\' ] to have a length of 4 but got 3');
+ expect(tea).to.have.property('extras').with.lengthOf(4);
+ tea.should.have.property('extras').with.lengthOf(4);
expect(tea).to.be.a('object').and.have.property('name', 'chai');
tea.should.be.a('object').and.have.property('name', 'chai');
@@ -906,9 +734,9 @@ function _throw() {
// only set the name inside the constructor itself.
PoorlyConstructedError.prototype = Object.create(Error.prototype);
- var specificError = new RangeError('boo');
+ const specificError = new RangeError('boo');
- var goodFn = () => { }
+ const goodFn = () => { }
, badFn = () => { throw new Error('testing'); }
, refErrFn = () => { throw new ReferenceError('hello'); }
, ickyErrFn = () => { throw new PoorlyConstructedError(); }
@@ -989,116 +817,80 @@ function _throw() {
badFn.should.throw(Error, 'testing');
should.throw(badFn, Error, 'testing');
- err(() => {
- expect(goodFn).to.throw();
- goodFn.should.throw();
- should.throw(goodFn);
- }, 'expected [Function] to throw an error');
+ expect(goodFn).to.throw();
+ goodFn.should.throw();
+ should.throw(goodFn);
- err(() => {
- expect(goodFn).to.throw(ReferenceError);
- goodFn.should.throw(ReferenceError);
- should.throw(goodFn, ReferenceError);
- }, 'expected [Function] to throw ReferenceError');
+ expect(goodFn).to.throw(ReferenceError);
+ goodFn.should.throw(ReferenceError);
+ should.throw(goodFn, ReferenceError);
- err(() => {
- expect(goodFn).to.throw(specificError);
- goodFn.should.throw(specificError);
- should.throw(goodFn, specificError);
- }, 'expected [Function] to throw [RangeError: boo]');
+ expect(goodFn).to.throw(specificError);
+ goodFn.should.throw(specificError);
+ should.throw(goodFn, specificError);
- err(() => {
- expect(badFn).to.not.throw();
- badFn.should.not.throw();
- should.not.throw(badFn);
- }, 'expected [Function] to not throw an error but [Error: testing] was thrown');
+ expect(badFn).to.not.throw();
+ badFn.should.not.throw();
+ should.not.throw(badFn);
- err(() => {
- expect(badFn).to.throw(ReferenceError);
- badFn.should.throw(ReferenceError);
- should.throw(badFn, ReferenceError);
- }, 'expected [Function] to throw \'ReferenceError\' but [Error: testing] was thrown');
+ expect(badFn).to.throw(ReferenceError);
+ badFn.should.throw(ReferenceError);
+ should.throw(badFn, ReferenceError);
- err(() => {
- expect(badFn).to.throw(specificError);
- badFn.should.throw(specificError);
- should.throw(badFn, specificError);
- }, 'expected [Function] to throw [RangeError: boo] but [Error: testing] was thrown');
+ expect(badFn).to.throw(specificError);
+ badFn.should.throw(specificError);
+ should.throw(badFn, specificError);
- err(() => {
- expect(badFn).to.not.throw(Error);
- badFn.should.not.throw(Error);
- should.not.throw(badFn, Error);
- }, 'expected [Function] to not throw \'Error\' but [Error: testing] was thrown');
+ expect(badFn).to.not.throw(Error);
+ badFn.should.not.throw(Error);
+ should.not.throw(badFn, Error);
- err(() => {
- expect(refErrFn).to.not.throw(ReferenceError);
- refErrFn.should.not.throw(ReferenceError);
- should.not.throw(refErrFn, ReferenceError);
- }, 'expected [Function] to not throw \'ReferenceError\' but [ReferenceError: hello] was thrown');
+ expect(refErrFn).to.not.throw(ReferenceError);
+ refErrFn.should.not.throw(ReferenceError);
+ should.not.throw(refErrFn, ReferenceError);
- err(() => {
- expect(badFn).to.throw(PoorlyConstructedError);
- badFn.should.throw(PoorlyConstructedError);
- should.throw(badFn, PoorlyConstructedError);
- }, 'expected [Function] to throw \'PoorlyConstructedError\' but [Error: testing] was thrown');
+ expect(badFn).to.throw(PoorlyConstructedError);
+ badFn.should.throw(PoorlyConstructedError);
+ should.throw(badFn, PoorlyConstructedError);
- err(() => {
- expect(ickyErrFn).to.not.throw(PoorlyConstructedError);
- ickyErrFn.should.not.throw(PoorlyConstructedError);
- should.not.throw(ickyErrFn, PoorlyConstructedError);
- }, /^(expected \[Function\] to not throw 'PoorlyConstructedError' but)(.*)(PoorlyConstructedError|\{ Object \()(.*)(was thrown)$/);
+ expect(ickyErrFn).to.not.throw(PoorlyConstructedError);
+ ickyErrFn.should.not.throw(PoorlyConstructedError);
+ should.not.throw(ickyErrFn, PoorlyConstructedError);
- err(() => {
- expect(ickyErrFn).to.throw(ReferenceError);
- ickyErrFn.should.throw(ReferenceError);
- should.throw(ickyErrFn, ReferenceError);
- }, /^(expected \[Function\] to throw 'ReferenceError' but)(.*)(PoorlyConstructedError|\{ Object \()(.*)(was thrown)$/);
+ expect(ickyErrFn).to.throw(ReferenceError);
+ ickyErrFn.should.throw(ReferenceError);
+ should.throw(ickyErrFn, ReferenceError);
- err(() => {
- expect(specificErrFn).to.throw(new ReferenceError('eek'));
- specificErrFn.should.throw(new ReferenceError('eek'));
- should.throw(specificErrFn, new ReferenceError('eek'));
- }, 'expected [Function] to throw [ReferenceError: eek] but [RangeError: boo] was thrown');
+ expect(specificErrFn).to.throw(new ReferenceError('eek'));
+ specificErrFn.should.throw(new ReferenceError('eek'));
+ should.throw(specificErrFn, new ReferenceError('eek'));
- err(() => {
- expect(specificErrFn).to.not.throw(specificError);
- specificErrFn.should.not.throw(specificError);
- should.not.throw(specificErrFn, specificError);
- }, 'expected [Function] to not throw [RangeError: boo]');
+ expect(specificErrFn).to.not.throw(specificError);
+ specificErrFn.should.not.throw(specificError);
+ should.not.throw(specificErrFn, specificError);
- err(() => {
- expect(badFn).to.not.throw(/testing/);
- badFn.should.not.throw(/testing/);
- should.not.throw(badFn, /testing/);
- }, 'expected [Function] to throw error not matching /testing/');
+ expect(badFn).to.not.throw(/testing/);
+ badFn.should.not.throw(/testing/);
+ should.not.throw(badFn, /testing/);
- err(() => {
- expect(badFn).to.throw(/hello/);
- badFn.should.throw(/hello/);
- should.throw(badFn, /hello/);
- }, 'expected [Function] to throw error matching /hello/ but got \'testing\'');
+ expect(badFn).to.throw(/hello/);
+ badFn.should.throw(/hello/);
+ should.throw(badFn, /hello/);
- err(() => {
- expect(badFn).to.throw(Error, /hello/, 'blah');
- badFn.should.throw(Error, /hello/, 'blah');
- should.throw(badFn, Error, /hello/, 'blah');
- }, 'blah: expected [Function] to throw error matching /hello/ but got \'testing\'');
+ expect(badFn).to.throw(Error, /hello/, 'blah');
+ badFn.should.throw(Error, /hello/, 'blah');
+ should.throw(badFn, Error, /hello/, 'blah');
- err(() => {
- expect(badFn).to.throw(Error, 'hello', 'blah');
- badFn.should.throw(Error, 'hello', 'blah');
- should.throw(badFn, Error, 'hello', 'blah');
- }, 'blah: expected [Function] to throw error including \'hello\' but got \'testing\'');
+ expect(badFn).to.throw(Error, 'hello', 'blah');
+ badFn.should.throw(Error, 'hello', 'blah');
+ should.throw(badFn, Error, 'hello', 'blah');
}
function use() {
- // ReSharper disable once InconsistentNaming
chai.use((_chai) => {
_chai.can.use.any();
});
- // chain style: use mulptile plug-ins
let expect = chai
.use((_chai, util) => {})
.use((_chai, util) => {})
@@ -1114,7 +906,7 @@ class Klass {
}
function respondTo() {
- var obj = new Klass();
+ const obj = new Klass();
expect(Klass).to.respondTo('bar');
expect(obj).respondsTo('bar');
@@ -1128,15 +920,11 @@ function respondTo() {
expect(obj).not.to.respondTo('foo');
obj.should.not.respondTo('foo');
- err(() => {
- expect(Klass).to.respondTo('baz', 'constructor');
- Klass.should.respondTo('baz', 'constructor');
- }, /^(constructor: expected)(.*)(\[Function: Klass\])(.*)(to respond to \'baz\')$/);
+ expect(Klass).to.respondTo('baz', 'constructor');
+ Klass.should.respondTo('baz', 'constructor');
- err(() => {
- expect(obj).to.respondTo('baz', 'object');
- obj.should.respondTo('baz', 'object');
- }, /^(object: expected)(.*)(\{ foo: \[Function\] \}|\{ Object \()(.*)(to respond to \'baz\')$/);
+ expect(obj).to.respondTo('baz', 'object');
+ obj.should.respondTo('baz', 'object');
}
function satisfy() {
@@ -1147,10 +935,8 @@ function satisfy() {
expect(1).to.satisfy(matcher);
(1).should.satisfy(matcher);
- err(() => {
- expect(2).to.satisfy(matcher, 'blah');
- (2).should.satisfy(matcher, 'blah');
- }, 'blah: expected 2 to satisfy [Function: matcher]');
+ expect(2).to.satisfy(matcher, 'blah');
+ (2).should.satisfy(matcher, 'blah');
}
function closeTo() {
@@ -1161,15 +947,11 @@ function closeTo() {
expect(-10).to.be.closeTo(20, 30);
(-10).should.be.closeTo(20, 30);
- err(() => {
- expect(2).to.be.closeTo(1.0, 0.5, 'blah');
- (2).should.be.closeTo(1.0, 0.5, 'blah');
- }, 'blah: expected 2 to be close to 1 +/- 0.5');
+ expect(2).to.be.closeTo(1.0, 0.5, 'blah');
+ (2).should.be.closeTo(1.0, 0.5, 'blah');
- err(() => {
- expect(-10).to.be.closeTo(20, 29, 'blah');
- (-10).should.be.closeTo(20, 29, 'blah');
- }, 'blah: expected -10 to be close to 20 +/- 29');
+ expect(-10).to.be.closeTo(20, 29, 'blah');
+ (-10).should.be.closeTo(20, 29, 'blah');
}
function approximately() {
@@ -1180,15 +962,11 @@ function approximately() {
expect(-10).to.be.approximately(20, 30);
(-10).should.be.approximately(20, 30);
- err(() => {
- expect(2).to.be.approximately(1.0, 0.5, 'blah');
- (2).should.be.approximately(1.0, 0.5, 'blah');
- }, 'blah: expected 2 to be close to 1 +/- 0.5');
+ expect(2).to.be.approximately(1.0, 0.5, 'blah');
+ (2).should.be.approximately(1.0, 0.5, 'blah');
- err(() => {
- expect(-10).to.be.approximately(20, 29, 'blah');
- (-10).should.be.approximately(20, 29, 'blah');
- }, 'blah: expected -10 to be close to 20 +/- 29');
+ expect(-10).to.be.approximately(20, 29, 'blah');
+ (-10).should.be.approximately(20, 29, 'blah');
}
function includeMembers() {
@@ -1249,10 +1027,10 @@ function members() {
}
function increaseDecreaseChange() {
- var obj = { val: 10 };
- var inc = () => { obj.val++; };
- var dec = () => { obj.val--; };
- var same = () => { };
+ const obj = { val: 10 };
+ const inc = () => { obj.val++; };
+ const dec = () => { obj.val--; };
+ const same = () => { };
expect(inc).to.increase(obj, "val");
expect(inc).increases(obj, "val");
@@ -1281,7 +1059,7 @@ function increaseDecreaseChange() {
}
function oneOf() {
- var obj = { z: 3 };
+ const obj = { z: 3 };
expect(5).to.be.oneOf([1, 5, 4]);
expect('z').to.be.oneOf(['x', 'y', 'z']);
@@ -1311,28 +1089,17 @@ class CrashyObject {
suite('assert', () => {
test('assert', () => {
- var foo = 'bar';
+ const foo: string = 'bar';
assert(foo === 'bar', 'expected foo to equal `bar`');
- err(() => {
- assert(foo === 'baz', 'expected foo to equal `bar`');
- }, 'expected foo to equal `bar`');
+ assert(foo === 'baz', 'expected foo to equal `bar`');
});
test('isTrue', () => {
assert.isTrue(true);
-
- err(() => {
- assert.isTrue(false);
- }, 'expected false to be true');
-
- err(() => {
- assert.isTrue(1);
- }, 'expected 1 to be true');
-
- err(() => {
- assert.isTrue('test');
- }, 'expected \'test\' to be true');
+ assert.isTrue(false);
+ assert.isTrue(1);
+ assert.isTrue('test');
});
test('ok', () => {
@@ -1342,18 +1109,9 @@ suite('assert', () => {
assert.isOk(true);
assert.isOk(1);
assert.isOk('test');
-
- err(() => {
- assert.ok(false);
- }, 'expected false to be truthy');
-
- err(() => {
- assert.ok(0);
- }, 'expected 0 to be truthy');
-
- err(() => {
- assert.ok('');
- }, 'expected \'\' to be truthy');
+ assert.ok(false);
+ assert.ok(0);
+ assert.ok('');
});
test('notOk', () => {
@@ -1363,30 +1121,15 @@ suite('assert', () => {
assert.isNotOk(false);
assert.isNotOk(0);
assert.isNotOk('');
-
- err(() => {
- assert.notOk(true);
- }, 'expected true to be falsy');
-
- err(() => {
- assert.notOk(1);
- }, 'expected 1 to be falsy');
-
- err(() => {
- assert.notOk('test');
- }, 'expected \'test\' to be falsy');
+ assert.notOk(true);
+ assert.notOk(1);
+ assert.notOk('test');
});
test('isFalse', () => {
assert.isFalse(false);
-
- err(() => {
- assert.isFalse(true);
- }, 'expected true to be false');
-
- err(() => {
- assert.isFalse(0);
- }, 'expected 0 to be false');
+ assert.isFalse(true);
+ assert.isFalse(0);
});
test('equal', () => {
@@ -1397,387 +1140,235 @@ suite('assert', () => {
assert.typeOf('test', 'string');
assert.typeOf(true, 'boolean');
assert.typeOf(5, 'number');
-
- err(() => {
- assert.typeOf(5, 'string');
- }, 'expected 5 to be a string');
-
+ assert.typeOf(5, 'string');
});
test('notTypeOf', () => {
assert.notTypeOf('test', 'number');
-
- err(() => {
- assert.notTypeOf(5, 'number');
- }, 'expected 5 not to be a number');
+ assert.notTypeOf(5, 'number');
});
test('instanceOf', () => {
assert.instanceOf(new Foo(), Foo);
-
- err(() => {
- assert.instanceOf(5, Foo);
- }, 'expected 5 to be an instance of Foo');
+ assert.instanceOf(5, Foo);
assert.instanceOf(new CrashyObject(), CrashyObject);
});
test('notInstanceOf', () => {
assert.notInstanceOf(new Foo(), String);
-
- err(() => {
- assert.notInstanceOf(new Foo(), Foo);
- }, 'expected {} to not be an instance of Foo');
+ assert.notInstanceOf(new Foo(), Foo);
});
test('isObject', () => {
assert.isObject({});
assert.isObject(new Foo());
-
- err(() => {
- assert.isObject(true);
- }, 'expected true to be an object');
-
- err(() => {
- assert.isObject(Foo);
- }, 'expected [Function: Foo] to be an object');
-
- err(() => {
- assert.isObject('foo');
- }, 'expected \'foo\' to be an object');
+ assert.isObject(true);
+ assert.isObject(Foo);
+ assert.isObject('foo');
});
test('isNotObject', () => {
assert.isNotObject(5);
-
- err(() => {
- assert.isNotObject({});
- }, 'expected {} not to be an object');
+ assert.isNotObject({});
});
test('notEqual', () => {
assert.notEqual(3, 4);
-
- err(() => {
- assert.notEqual(5, 5);
- }, 'expected 5 to not equal 5');
+ assert.notEqual(5, 5);
});
test('strictEqual', () => {
assert.strictEqual('foo', 'foo');
-
- err(() => {
- assert.strictEqual('5', 5);
- }, 'expected \'5\' to equal 5');
});
test('notStrictEqual', () => {
- assert.notStrictEqual(5, '5');
-
- err(() => {
- assert.notStrictEqual(5, 5);
- }, 'expected 5 to not equal 5');
+ assert.notStrictEqual(5, 5);
});
test('deepEqual', () => {
assert.deepEqual({ tea: 'chai' }, { tea: 'chai' });
+ assert.deepEqual({ tea: 'chai' }, { tea: 'black' });
- err(() => {
- assert.deepEqual({ tea: 'chai' }, { tea: 'black' });
- }, 'expected { tea: \'chai\' } to deeply equal { tea: \'black\' }');
-
- var obja = Object.create({ tea: 'chai' })
+ const obja = Object.create({ tea: 'chai' })
, objb = Object.create({ tea: 'chai' });
assert.deepEqual(obja, objb);
- var obj1 = Object.create({ tea: 'chai' })
+ const obj1 = Object.create({ tea: 'chai' })
, obj2 = Object.create({ tea: 'black' });
- err(() => {
- assert.deepEqual(obj1, obj2);
- }, 'expected { tea: \'chai\' } to deeply equal { tea: \'black\' }');
+ assert.deepEqual(obj1, obj2);
});
test('deepEqual (ordering)', () => {
- var a = { a: 'b', c: 'd' }
+ const a = { a: 'b', c: 'd' }
, b = { c: 'd', a: 'b' };
assert.deepEqual(a, b);
});
test('deepEqual (circular)', () => {
- var circularObject: any = {}
+ const circularObject: any = {}
, secondCircularObject: any = {};
circularObject.field = circularObject;
secondCircularObject.field = secondCircularObject;
assert.deepEqual(circularObject, secondCircularObject);
- err(() => {
- secondCircularObject.field2 = secondCircularObject;
- assert.deepEqual(circularObject, secondCircularObject);
- }, 'expected { field: [Circular] } to deeply equal { Object (field, field2) }');
+ secondCircularObject.field2 = secondCircularObject;
+ assert.deepEqual(circularObject, secondCircularObject);
});
test('notDeepEqual', () => {
assert.notDeepEqual({ tea: 'jasmine' }, { tea: 'chai' });
- err(() => {
- assert.notDeepEqual({ tea: 'chai' }, { tea: 'chai' });
- }, 'expected { tea: \'chai\' } to not deeply equal { tea: \'chai\' }');
+ assert.notDeepEqual({ tea: 'chai' }, { tea: 'chai' });
});
test('notDeepEqual (circular)', () => {
- var circularObject: any = {}
+ const circularObject: any = {}
, secondCircularObject: any = { tea: 'jasmine' };
circularObject.field = circularObject;
secondCircularObject.field = secondCircularObject;
assert.notDeepEqual(circularObject, secondCircularObject);
- err(() => {
- delete secondCircularObject.tea;
- assert.notDeepEqual(circularObject, secondCircularObject);
- }, 'expected { field: [Circular] } to not deeply equal { field: [Circular] }');
+ delete secondCircularObject.tea;
+ assert.notDeepEqual(circularObject, secondCircularObject);
});
test('isNull', () => {
assert.isNull(null);
-
- err(() => {
- assert.isNull(undefined);
- }, 'expected undefined to equal null');
+ assert.isNull(undefined);
});
test('isNotNull', () => {
assert.isNotNull(undefined);
-
- err(() => {
- assert.isNotNull(null);
- }, 'expected null to not equal null');
+ assert.isNotNull(null);
});
test('isUndefined', () => {
assert.isUndefined(undefined);
-
- err(() => {
- assert.isUndefined(null);
- }, 'expected null to equal undefined');
+ assert.isUndefined(null);
});
test('isDefined', () => {
assert.isDefined(null);
-
- err(() => {
- assert.isDefined(undefined);
- }, 'expected undefined to not equal undefined');
+ assert.isDefined(undefined);
});
test('isNaN', () => {
assert.isNaN(NaN);
-
- err(() => {
- assert.isNaN(12);
- }, 'expected 12 to be NaN');
+ assert.isNaN(12);
});
test('isNotNaN', () => {
assert.isNotNaN(12);
-
- err(() => {
- assert.isNotNaN(NaN);
- }, 'expected NaN to not NaN');
+ assert.isNotNaN(NaN);
});
test('isFunction', () => {
- var func = () => {
+ const func = () => {
};
assert.isFunction(func);
-
- err(() => {
- assert.isFunction({});
- }, 'expected {} to be a function');
+ assert.isFunction({});
});
test('isNotFunction', () => {
assert.isNotFunction(5);
-
- err(() => {
- assert.isNotFunction(() => {
- });
- }, 'expected [Function] not to be a function');
+ assert.isNotFunction(() => {});
});
test('isArray', () => {
assert.isArray([]);
assert.isArray(new Array());
-
- err(() => {
- assert.isArray({});
- }, 'expected {} to be an array');
+ assert.isArray({});
});
test('isNotArray', () => {
assert.isNotArray(3);
-
- err(() => {
- assert.isNotArray([]);
- }, 'expected [] not to be an array');
-
- err(() => {
- assert.isNotArray(new Array());
- }, 'expected [] not to be an array');
+ assert.isNotArray([]);
+ assert.isNotArray(new Array());
});
test('isString', () => {
assert.isString('Foo');
assert.isString(new String('foo'));
-
- err(() => {
- assert.isString(1);
- }, 'expected 1 to be a string');
+ assert.isString(1);
});
test('isNotString', () => {
assert.isNotString(3);
assert.isNotString(['hello']);
-
- err(() => {
- assert.isNotString('hello');
- }, 'expected \'hello\' not to be a string');
+ assert.isNotString('hello');
});
test('isNumber', () => {
assert.isNumber(1);
assert.isNumber(Number('3'));
-
- err(() => {
- assert.isNumber('1');
- }, 'expected \'1\' to be a number');
+ assert.isNumber('1');
});
test('isNotNumber', () => {
assert.isNotNumber('hello');
assert.isNotNumber([5]);
-
- err(() => {
- assert.isNotNumber(4);
- }, 'expected 4 not to be a number');
+ assert.isNotNumber(4);
});
test('isBoolean', () => {
assert.isBoolean(true);
assert.isBoolean(false);
-
- err(() => {
- assert.isBoolean('1');
- }, 'expected \'1\' to be a boolean');
+ assert.isBoolean('1');
});
test('isNotBoolean', () => {
assert.isNotBoolean('true');
-
- err(() => {
- assert.isNotBoolean(true);
- }, 'expected true not to be a boolean');
-
- err(() => {
- assert.isNotBoolean(false);
- }, 'expected false not to be a boolean');
+ assert.isNotBoolean(true);
+ assert.isNotBoolean(false);
});
test('include', () => {
assert.include('foobar', 'bar');
assert.include([1, 2, 3], 3);
-
- err(() => {
- assert.include('foobar', 'baz');
- }, 'expected \'foobar\' to contain \'baz\'');
-
- err(() => {
- assert.include(undefined, 'bar');
- }, 'expected an array or string');
+ assert.include('foobar', 'baz');
+ assert.include(undefined, 'bar');
});
test('notInclude', () => {
assert.notInclude('foobar', 'baz');
assert.notInclude([1, 2, 3], 4);
-
- err(() => {
- assert.notInclude('foobar', 'bar');
- }, 'expected \'foobar\' to not contain \'bar\'');
-
- err(() => {
- assert.notInclude(undefined, 'bar');
- }, 'expected an array or string');
+ assert.notInclude('foobar', 'bar');
+ assert.notInclude(undefined, 'bar');
});
test('lengthOf', () => {
assert.lengthOf([1, 2, 3], 3);
assert.lengthOf('foobar', 6);
-
- err(() => {
- assert.lengthOf('foobar', 5);
- }, 'expected \'foobar\' to have a length of 5 but got 6');
-
- err(() => {
- assert.lengthOf(1, 5);
- }, 'expected 1 to have a property \'length\'');
+ assert.lengthOf('foobar', 5);
+ assert.lengthOf(1, 5);
});
test('match', () => {
assert.match('foobar', /^foo/);
assert.notMatch('foobar', /^bar/);
-
- err(() => {
- assert.match('foobar', /^bar/i);
- }, 'expected \'foobar\' to match /^bar/i');
-
- err(() => {
- assert.notMatch('foobar', /^foo/i);
- }, 'expected \'foobar\' not to match /^foo/i');
+ assert.match('foobar', /^bar/i);
+ assert.notMatch('foobar', /^foo/i);
});
test('property', () => {
- var obj = { foo: { bar: 'baz' } };
- var simpleObj = { foo: 'bar' };
+ const obj = { foo: { bar: 'baz' } };
+ const simpleObj = { foo: 'bar' } as any;
assert.property(obj, 'foo');
assert.deepProperty(obj, 'foo.bar');
- assert.notProperty(obj, 'baz');
- assert.notProperty(obj, 'foo.bar');
assert.notDeepProperty(obj, 'foo.baz');
assert.deepPropertyVal(obj, 'foo.bar', 'baz');
- assert.deepPropertyNotVal(obj, 'foo.bar', 'flow');
-
- err(() => {
- assert.property(obj, 'baz');
- }, 'expected { foo: { bar: \'baz\' } } to have a property \'baz\'');
-
- err(() => {
- assert.deepProperty(obj, 'foo.baz');
- }, 'expected { foo: { bar: \'baz\' } } to have a deep property \'foo.baz\'');
-
- err(() => {
- assert.notProperty(obj, 'foo');
- }, 'expected { foo: { bar: \'baz\' } } to not have property \'foo\'');
-
- err(() => {
- assert.notDeepProperty(obj, 'foo.bar');
- }, 'expected { foo: { bar: \'baz\' } } to not have deep property \'foo.bar\'');
-
- err(() => {
- assert.propertyVal(simpleObj, 'foo', 'ball');
- }, 'expected { foo: \'bar\' } to have a property \'foo\' of \'ball\', but got \'bar\'');
-
- err(() => {
- assert.deepPropertyVal(obj, 'foo.bar', 'ball');
- }, 'expected { foo: { bar: \'baz\' } } to have a deep property \'foo.bar\' of \'ball\', but got \'baz\'');
-
- err(() => {
- assert.propertyNotVal(simpleObj, 'foo', 'bar');
- }, 'expected { foo: \'bar\' } to not have a property \'foo\' of \'bar\'');
-
- err(() => {
- assert.deepPropertyNotVal(obj, 'foo.bar', 'baz');
- }, 'expected { foo: { bar: \'baz\' } } to not have a deep property \'foo.bar\' of \'baz\'');
+ assert.deepPropertyNotVal(simpleObj, 'foo.bar', 'flow');
+ assert.property(simpleObj, 'baz');
+ assert.deepProperty(obj, 'foo.baz');
+ assert.notProperty(obj, 'foo');
+ assert.notDeepProperty(obj, 'foo.bar');
+ assert.propertyVal(simpleObj, 'foo', 'ball');
+ assert.deepPropertyVal(obj, 'foo.bar', 'ball');
+ assert.propertyNotVal(simpleObj, 'foo', 'bar');
+ assert.deepPropertyNotVal(simpleObj, 'foo.bar', 'baz');
});
test('throws', () => {
@@ -1797,69 +1388,47 @@ suite('assert', () => {
throw new Error('bar');
}, Error, 'bar');
- err(() => {
- assert.throws(() => {
- throw new Error('foo');
- }, TypeError);
- }, 'expected [Function] to throw \'TypeError\' but [Error: foo] was thrown');
+ assert.throws(() => {
+ throw new Error('foo');
+ }, TypeError);
- err(() => {
- assert.throws(() => {
- throw new Error('foo');
- }, 'bar');
- }, 'expected [Function] to throw error including \'bar\' but got \'foo\'');
+ assert.throws(() => {
+ throw new Error('foo');
+ }, 'bar');
- err(() => {
- assert.throws(() => {
- throw new Error('foo');
- }, Error, 'bar');
- }, 'expected [Function] to throw error including \'bar\' but got \'foo\'');
+ assert.throws(() => {
+ throw new Error('foo');
+ }, Error, 'bar');
- err(() => {
- assert.throws(() => {
- throw new Error('foo');
- }, TypeError, 'bar');
- }, 'expected [Function] to throw \'TypeError\' but [Error: foo] was thrown');
+ assert.throws(() => {
+ throw new Error('foo');
+ }, TypeError, 'bar');
- err(() => {
- assert.throws(() => {
- });
- }, 'expected [Function] to throw an error');
+ assert.throws(() => {});
- err(() => {
- assert.throws(() => {
- throw new Error('');
- }, 'bar');
- }, 'expected [Function] to throw error including \'bar\' but got \'\'');
+ assert.throws(() => {
+ throw new Error('');
+ }, 'bar');
- err(() => {
- assert.throws(() => {
- throw new Error('');
- }, /bar/);
- }, 'expected [Function] to throw error matching /bar/ but got \'\'');
+ assert.throws(() => {
+ throw new Error('');
+ }, /bar/);
});
test('doesNotThrow', () => {
- assert.doesNotThrow(() => {
- });
- assert.doesNotThrow(() => {
- }, 'foo');
+ assert.doesNotThrow(() => { });
+ assert.doesNotThrow(() => { }, 'foo');
- err(() => {
- assert.doesNotThrow(() => {
- throw new Error('foo');
- });
- }, 'expected [Function] to not throw an error but [Error: foo] was thrown');
+ assert.doesNotThrow(() => {
+ throw new Error('foo');
+ });
});
test('ifError', () => {
assert.ifError(false);
assert.ifError(null);
assert.ifError(undefined);
-
- err(() => {
- assert.ifError('foo');
- }, 'expected \'foo\' to be falsy');
+ assert.ifError('foo');
});
test('operator', () => {
@@ -1870,117 +1439,58 @@ suite('assert', () => {
assert.operator(1, '>=', 1);
assert.operator(1, '!=', 2);
assert.operator(1, '!==', 2);
-
- err(() => {
- assert.operator(1, '=', 2);
- }, 'Invalid operator "="');
-
- err(() => {
- assert.operator(2, '<', 1);
- }, 'expected 2 to be < 1');
-
- err(() => {
- assert.operator(1, '>', 2);
- }, 'expected 1 to be > 2');
-
- err(() => {
- assert.operator(1, '==', 2);
- }, 'expected 1 to be == 2');
-
- err(() => {
- assert.operator(2, '<=', 1);
- }, 'expected 2 to be <= 1');
-
- err(() => {
- assert.operator(1, '>=', 2);
- }, 'expected 1 to be >= 2');
-
- err(() => {
- assert.operator(1, '!=', 1);
- }, 'expected 1 to be != 1');
-
- err(() => {
- assert.operator(1, '!==', '1');
- }, 'expected 1 to be !== \'1\'');
+ assert.operator(2, '<', 1);
+ assert.operator(1, '>', 2);
+ assert.operator(1, '==', 2);
+ assert.operator(2, '<=', 1);
+ assert.operator(1, '>=', 2);
+ assert.operator(1, '!=', 1);
+ assert.operator(1, '!==', '1');
});
test('closeTo', () => {
assert.closeTo(1.5, 1.0, 0.5);
assert.closeTo(10, 20, 20);
assert.closeTo(-10, 20, 30);
-
- err(() => {
- assert.closeTo(2, 1.0, 0.5);
- }, 'expected 2 to be close to 1 +/- 0.5');
-
- err(() => {
- assert.closeTo(-10, 20, 29);
- }, 'expected -10 to be close to 20 +/- 29');
+ assert.closeTo(2, 1.0, 0.5);
+ assert.closeTo(-10, 20, 29);
});
test('approximately', () => {
assert.approximately(1.5, 1.0, 0.5);
assert.approximately(10, 20, 20);
assert.approximately(-10, 20, 30);
-
- err(() => {
- assert.approximately(2, 1.0, 0.5);
- }, 'expected 2 to be close to 1 +/- 0.5');
-
- err(() => {
- assert.approximately(-10, 20, 29);
- }, 'expected -10 to be close to 20 +/- 29');
+ assert.approximately(2, 1.0, 0.5);
+ assert.approximately(-10, 20, 29);
});
test('members', () => {
assert.includeMembers([1, 2, 3], [2, 3]);
assert.includeMembers([1, 2, 3], []);
assert.includeMembers([1, 2, 3], [3]);
-
- err(() => {
- assert.includeMembers([5, 6], [7, 8]);
- }, 'expected [ 5, 6 ] to be a superset of [ 7, 8 ]');
-
- err(() => {
- assert.includeMembers([5, 6], [5, 6, 0]);
- }, 'expected [ 5, 6 ] to be a superset of [ 5, 6, 0 ]');
+ assert.includeMembers([5, 6], [7, 8]);
+ assert.includeMembers([5, 6], [5, 6, 0]);
});
test('memberEquals', () => {
assert.sameMembers([], []);
assert.sameMembers([1, 2, 3], [3, 2, 1]);
assert.sameMembers([4, 2], [4, 2]);
-
- err(() => {
- assert.sameMembers([], [1, 2]);
- }, 'expected [] to have the same members as [ 1, 2 ]');
-
- err(() => {
- assert.sameMembers([1, 54], [6, 1, 54]);
- }, 'expected [ 1, 54 ] to have the same members as [ 6, 1, 54 ]');
+ assert.sameMembers([], [1, 2]);
+ assert.sameMembers([1, 54], [6, 1, 54]);
});
test('isAbove', () => {
assert.isAbove(10, 5);
-
- err(() => {
- assert.isAbove(1, 5);
- }, 'expected 1 to be above 5');
- err(() => {
- assert.isAbove(5, 5);
- }, 'expected 5 to be above 5');
+ assert.isAbove(1, 5);
+ assert.isAbove(5, 5);
});
test('isBelow', () => {
assert.isBelow(5, 10);
-
- err(() => {
- assert.isBelow(5, 1);
- }, 'expected 5 to be above 1');
- err(() => {
- assert.isBelow(5, 5);
- }, 'expected 5 to be below 5');
+ assert.isBelow(5, 1);
+ assert.isBelow(5, 5);
});
test('extensible', () => { assert.extensible({}); });
@@ -2000,53 +1510,153 @@ suite('assert', () => {
test('isNotTrue', () => {
assert.isNotTrue(false);
-
- err(() => {
- assert.isNotTrue(true);
- }, 'expected true to not be true');
+ assert.isNotTrue(true);
});
test('isNotFalse', () => {
assert.isNotFalse(true);
-
- err(() => {
- assert.isNotFalse(false);
- }, 'expected false to not be false');
+ assert.isNotFalse(false);
});
test('isAtLeast', () => {
assert.isAtLeast(5, 3);
assert.isAtLeast(5, 5);
-
- err(() => {
- assert.isAtLeast(3, 5);
- }, 'expected 3 to be greater than or equal to 5');
+ assert.isAtLeast(3, 5);
});
test('isAtMost', () => {
assert.isAtMost(3, 5);
assert.isAtMost(5, 5);
-
- err(() => {
- assert.isAtMost(5, 3);
- }, 'expected 5 to be less than or equal to 3');
+ assert.isAtMost(5, 3);
});
test('oneOf', () => {
- var obj = { z: 3 };
+ const obj = { z: 3 };
assert.oneOf(5, [1, 5, 4]);
assert.oneOf('z', ['x', 'y', 'z']);
assert.oneOf(obj, [obj]);
-
- err(() => {
- assert.oneOf(5, [1, [5], 4]);
- }, 'expected 5 to be one of [1, [5], 4]');
- err(() => {
- assert.oneOf('z', ['w', 'x', 'y']);
- }, 'expected "z" to be one of [w, x, y]');
- err(() => {
- assert.oneOf(obj, [{ z: 3 }]);
- }, 'expected { z: 3 } to be one of [{ z: 3 }]');
+ assert.oneOf(5, [1, [5], 4]);
+ assert.oneOf('z', ['w', 'x', 'y']);
+ assert.oneOf(obj, [{ z: 3 }]);
});
-});
+
+ test('changes', () => {
+ const obj = { z: 3 };
+
+ assert.changes(() => {}, obj, 'z');
+ assert.changes(() => {}, obj, 'z', 'message');
+ });
+
+ test('doesNotChange', () => {
+ const obj = { z: 3 };
+
+ assert.doesNotChange(() => {}, obj, 'z');
+ assert.doesNotChange(() => {}, obj, 'z', 'message');
+ });
+
+ test('increases', () => {
+ const obj = { z: 3 };
+
+ assert.increases(() => {}, obj, 'z');
+ assert.increases(() => {}, obj, 'z', 'message');
+ });
+
+ test('doesNotIncrease', () => {
+ const obj = { z: 3 };
+
+ assert.doesNotIncrease(() => {}, obj, 'z');
+ assert.doesNotIncrease(() => {}, obj, 'z', 'message');
+ });
+
+ test('decreases', () => {
+ const obj = { z: 3 };
+
+ assert.decreases(() => {}, obj, 'z');
+ assert.decreases(() => {}, obj, 'z', 'message');
+ });
+
+ test('doesNotDecrease', () => {
+ const obj = { z: 3 };
+
+ assert.doesNotDecrease(() => {}, obj, 'z');
+ assert.doesNotDecrease(() => {}, obj, 'z', 'message');
+ });
+
+ test('ifError', () => {
+ const obj = { z: 3 };
+
+ assert.ifError(obj);
+ assert.ifError(obj, 'message');
+ });
+
+ test('extensible', () => {
+ const obj = { z: 3 };
+
+ assert.extensible(obj);
+ assert.extensible(obj, 'message');
+ });
+
+ test('isNotExtensible', () => {
+ const obj = { z: 3 };
+
+ assert.isNotExtensible(obj);
+ assert.isNotExtensible(obj, 'message');
+ });
+
+ test('isSealed', () => {
+ const obj = { z: 3 };
+
+ assert.isSealed(obj);
+ assert.isSealed(obj, 'message');
+ });
+
+ test('sealed', () => {
+ const obj = { z: 3 };
+
+ assert.sealed(obj);
+ assert.sealed(obj, 'message');
+ });
+
+ test('isNotSealed', () => {
+ const obj = { z: 3 };
+
+ assert.isNotSealed(obj);
+ assert.isNotSealed(obj, 'message');
+ });
+
+ test('notSealed', () => {
+ const obj = { z: 3 };
+
+ assert.notSealed(obj);
+ assert.notSealed(obj, 'message');
+ });
+
+ test('isFrozen', () => {
+ const obj = { z: 3 };
+
+ assert.isFrozen(obj);
+ assert.isFrozen(obj, 'message');
+ });
+
+ test('frozen', () => {
+ const obj = { z: 3 };
+
+ assert.frozen(obj);
+ assert.frozen(obj, 'message');
+ });
+
+ test('isNotFrozen', () => {
+ const obj = { z: 3 };
+
+ assert.isNotFrozen(obj);
+ assert.isNotFrozen(obj, 'message');
+ });
+
+ test('notFrozen', () => {
+ const obj = { z: 3 };
+
+ assert.notFrozen(obj);
+ assert.notFrozen(obj, 'message');
+ });
+});
\ No newline at end of file
diff --git a/types/chai/index.d.ts b/types/chai/index.d.ts
index 532aa3b579..a040c43249 100644
--- a/types/chai/index.d.ts
+++ b/types/chai/index.d.ts
@@ -1,10 +1,11 @@
-// Type definitions for chai 3.4.0
+// Type definitions for chai 3.5.0
// Project: http://chaijs.com/
// Definitions by: Jed Mao ,
// Bart van der Schoor ,
// Andrew Brown ,
// Olivier Chevet ,
-// Matt Wistrand
+// Matt Wistrand ,
+// Josh Goldberg
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
//
@@ -21,10 +22,11 @@ declare namespace Chai {
assert: AssertStatic;
config: Config;
AssertionError: typeof AssertionError;
+ version: string;
}
export interface ExpectStatic extends AssertionStatic {
- fail(actual?: any, expected?: any, message?: string, operator?: string): void;
+ fail(actual?: any, expected?: any, message?: string, operator?: Operator): void;
}
export interface AssertStatic extends Assert {
@@ -34,6 +36,10 @@ declare namespace Chai {
(target: any, message?: string): Assertion;
}
+ export type Operator = string; // "==" | "===" | ">" | ">=" | "<" | "<=" | "!=" | "!==";
+
+ export type OperatorComparable = boolean | null | number | string | undefined | Date;
+
interface ShouldAssertion {
equal(value1: any, value2: any, message?: string): void;
Throw: ShouldThrow;
@@ -43,7 +49,7 @@ declare namespace Chai {
interface Should extends ShouldAssertion {
not: ShouldAssertion;
- fail(actual: any, expected: any, message?: string, operator?: string): void;
+ fail(actual: any, expected: any, message?: string, operator?: Operator): void;
}
interface ShouldThrow {
@@ -238,146 +244,975 @@ declare namespace Chai {
}
interface PropertyChange {
- (object: Object, prop: string, msg?: string): Assertion;
+ (object: Object, property: string, message?: string): Assertion;
}
export interface Assert {
/**
- * @param expression Expression to test for truthiness.
- * @param message Message to display on error.
+ * @param expression Expression to test for truthiness.
+ * @param message Message to display on error.
*/
(expression: any, message?: string): void;
- fail(actual?: any, expected?: any, msg?: string, operator?: string): void;
+ /**
+ * Throws a failure.
+ *
+ * @type T Type of the objects.
+ * @param actual Actual value.
+ * @param expected Potential expected value.
+ * @param message Message to display on error.
+ * @param operator Comparison operator, if not strict equality.
+ * @remarks Node.js assert module-compatible.
+ */
+ fail(actual?: T, expected?: T, message?: string, operator?: Operator): void;
- ok(val: any, msg?: string): void;
- isOk(val: any, msg?: string): void;
- notOk(val: any, msg?: string): void;
- isNotOk(val: any, msg?: string): void;
+ /**
+ * Asserts that object is truthy.
+ *
+ * @type T Type of object.
+ * @param object Object to test.
+ * @param message Message to display on error.
+ */
+ isOk(value: T, message?: string): void;
- equal(act: any, exp: any, msg?: string): void;
- notEqual(act: any, exp: any, msg?: string): void;
+ /**
+ * Asserts that object is truthy.
+ *
+ * @type T Type of object.
+ * @param object Object to test.
+ * @param message Message to display on error.
+ */
+ ok(value: T, message?: string): void;
- strictEqual(act: any, exp: any, msg?: string): void;
- notStrictEqual(act: any, exp: any, msg?: string): void;
+ /**
+ * Asserts that object is falsy.
+ *
+ * @type T Type of object.
+ * @param object Object to test.
+ * @param message Message to display on error.
+ */
+ isNotOk(value: T, message?: string): void;
- deepEqual(act: any, exp: any, msg?: string): void;
- notDeepEqual(act: any, exp: any, msg?: string): void;
+ /**
+ * Asserts that object is falsy.
+ *
+ * @type T Type of object.
+ * @param object Object to test.
+ * @param message Message to display on error.
+ */
+ notOk(value: T, message?: string): void;
- isTrue(val: any, msg?: string): void;
- isFalse(val: any, msg?: string): void;
+ /**
+ * Asserts non-strict equality (==) of actual and expected.
+ *
+ * @type T Type of the objects.
+ * @param actual Actual value.
+ * @param expected Potential expected value.
+ * @param message Message to display on error.
+ */
+ equal(actual: T, expected: T, message?: string): void;
- isNotTrue(val: any, msg?: string): void;
- isNotFalse(val: any, msg?: string): void;
+ /**
+ * Asserts non-strict inequality (==) of actual and expected.
+ *
+ * @type T Type of the objects.
+ * @param actual Actual value.
+ * @param expected Potential expected value.
+ * @param message Message to display on error.
+ */
+ notEqual(actual: T, expected: T, message?: string): void;
- isNull(val: any, msg?: string): void;
- isNotNull(val: any, msg?: string): void;
+ /**
+ * Asserts strict equality (===) of actual and expected.
+ *
+ * @type T Type of the objects.
+ * @param actual Actual value.
+ * @param expected Potential expected value.
+ * @param message Message to display on error.
+ */
+ strictEqual(actual: T, expected: T, message?: string): void;
- isUndefined(val: any, msg?: string): void;
- isDefined(val: any, msg?: string): void;
+ /**
+ * Asserts strict inequality (==) of actual and expected.
+ *
+ * @type T Type of the objects.
+ * @param actual Actual value.
+ * @param expected Potential expected value.
+ * @param message Message to display on error.
+ */
+ notStrictEqual(actual: T, expected: T, message?: string): void;
- isNaN(val: any, msg?: string): void;
- isNotNaN(val: any, msg?: string): void;
+ /**
+ * Asserts that actual is deeply equal to expected.
+ *
+ * @type T Type of the objects.
+ * @param actual Actual value.
+ * @param expected Potential expected value.
+ * @param message Message to display on error.
+ */
+ deepEqual(actual: T, expected: T, message?: string): void;
- isAbove(val: number, abv: number, msg?: string): void;
- isBelow(val: number, blw: number, msg?: string): void;
+ /**
+ * Asserts that actual is not deeply equal to expected.
+ *
+ * @type T Type of the objects.
+ * @param actual Actual value.
+ * @param expected Potential expected value.
+ * @param message Message to display on error.
+ */
+ notDeepEqual(actual: T, expected: T, message?: string): void;
- isAtLeast(val: number, atlst: number, msg?: string): void;
- isAtMost(val: number, atmst: number, msg?: string): void;
+ /**
+ * Asserts valueToCheck is strictly greater than (>) valueToBeAbove.
+ *
+ * @param valueToCheck Actual value.
+ * @param valueToBeAbove Minimum Potential expected value.
+ * @param message Message to display on error.
+ */
+ isAbove(valueToCheck: number, valueToBeAbove: number, message?: string): void;
- isFunction(val: any, msg?: string): void;
- isNotFunction(val: any, msg?: string): void;
+ /**
+ * Asserts valueToCheck is greater than or equal to (>=) valueToBeAtLeast.
+ *
+ * @param valueToCheck Actual value.
+ * @param valueToBeAtLeast Minimum Potential expected value.
+ * @param message Message to display on error.
+ */
+ isAtLeast(valueToCheck: number, valueToBeAtLeast: number, message?: string): void;
- isObject(val: any, msg?: string): void;
- isNotObject(val: any, msg?: string): void;
+ /**
+ * Asserts valueToCheck is strictly less than (<) valueToBeBelow.
+ *
+ * @param valueToCheck Actual value.
+ * @param valueToBeBelow Minimum Potential expected value.
+ * @param message Message to display on error.
+ */
+ isBelow(valueToCheck: number, valueToBeBelow: number, message?: string): void;
- isArray(val: any, msg?: string): void;
- isNotArray(val: any, msg?: string): void;
+ /**
+ * Asserts valueToCheck is greater than or equal to (>=) valueToBeAtMost.
+ *
+ * @param valueToCheck Actual value.
+ * @param valueToBeAtMost Minimum Potential expected value.
+ * @param message Message to display on error.
+ */
+ isAtMost(valueToCheck: number, valueToBeAtMost: number, message?: string): void;
- isString(val: any, msg?: string): void;
- isNotString(val: any, msg?: string): void;
+ /**
+ * Asserts that value is true.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isTrue(value: T, message?: string): void;
- isNumber(val: any, msg?: string): void;
- isNotNumber(val: any, msg?: string): void;
+ /**
+ * Asserts that value is false.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isFalse(value: T, message?: string): void;
- isBoolean(val: any, msg?: string): void;
- isNotBoolean(val: any, msg?: string): void;
+ /**
+ * Asserts that value is not true.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNotTrue(value: T, message?: string): void;
- typeOf(val: any, type: string, msg?: string): void;
- notTypeOf(val: any, type: string, msg?: string): void;
+ /**
+ * Asserts that value is not false.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNotFalse(value: T, message?: string): void;
- instanceOf(val: any, type: Function, msg?: string): void;
- notInstanceOf(val: any, type: Function, msg?: string): void;
+ /**
+ * Asserts that value is null.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNull(value: T, message?: string): void;
- include(exp: string, inc: any, msg?: string): void;
- include(exp: any[], inc: any, msg?: string): void;
+ /**
+ * Asserts that value is not null.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNotNull(value: T, message?: string): void;
- notInclude(exp: string, inc: any, msg?: string): void;
- notInclude(exp: any[], inc: any, msg?: string): void;
+ /**
+ * Asserts that value is not null.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNaN(value: T, message?: string): void;
- match(exp: any, re: RegExp, msg?: string): void;
- notMatch(exp: any, re: RegExp, msg?: string): void;
+ /**
+ * Asserts that value is not null.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNotNaN(value: T, message?: string): void;
- property(obj: Object, prop: string, msg?: string): void;
- notProperty(obj: Object, prop: string, msg?: string): void;
- deepProperty(obj: Object, prop: string, msg?: string): void;
- notDeepProperty(obj: Object, prop: string, msg?: string): void;
+ /**
+ * Asserts that value is undefined.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isUndefined(value: T, message?: string): void;
- propertyVal(obj: Object, prop: string, val: any, msg?: string): void;
- propertyNotVal(obj: Object, prop: string, val: any, msg?: string): void;
+ /**
+ * Asserts that value is not undefined.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isDefined(value: T, message?: string): void;
- deepPropertyVal(obj: Object, prop: string, val: any, msg?: string): void;
- deepPropertyNotVal(obj: Object, prop: string, val: any, msg?: string): void;
+ /**
+ * Asserts that value is a function.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isFunction(value: T, message?: string): void;
- lengthOf(exp: any, len: number, msg?: string): void;
- //alias frenzy
- throw(fn: Function, msg?: string): void;
+ /**
+ * Asserts that value is not a function.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNotFunction(value: T, message?: string): void;
+
+ /**
+ * Asserts that value is an object of type 'Object'
+ * (as revealed by Object.prototype.toString).
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ * @remarks The assertion does not match subclassed objects.
+ */
+ isObject(value: T, message?: string): void;
+
+ /**
+ * Asserts that value is not an object of type 'Object'
+ * (as revealed by Object.prototype.toString).
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNotObject(value: T, message?: string): void;
+
+ /**
+ * Asserts that value is an array.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isArray(value: T, message?: string): void;
+
+ /**
+ * Asserts that value is not an array.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNotArray(value: T, message?: string): void;
+
+ /**
+ * Asserts that value is a string.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isString(value: T, message?: string): void;
+
+ /**
+ * Asserts that value is not a string.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNotString(value: T, message?: string): void;
+
+ /**
+ * Asserts that value is a number.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNumber(value: T, message?: string): void;
+
+ /**
+ * Asserts that value is not a number.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNotNumber(value: T, message?: string): void;
+
+ /**
+ * Asserts that value is a boolean.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isBoolean(value: T, message?: string): void;
+
+ /**
+ * Asserts that value is not a boolean.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param message Message to display on error.
+ */
+ isNotBoolean(value: T, message?: string): void;
+
+ /**
+ * Asserts that value's type is name, as determined by Object.prototype.toString.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param name Potential expected type name of value.
+ * @param message Message to display on error.
+ */
+ typeOf(value: T, name: string, message?: string): void;
+
+ /**
+ * Asserts that value's type is not name, as determined by Object.prototype.toString.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param name Potential expected type name of value.
+ * @param message Message to display on error.
+ */
+ notTypeOf(value: T, name: string, message?: string): void;
+
+ /**
+ * Asserts that value is an instance of constructor.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param constructor Potential expected contructor of value.
+ * @param message Message to display on error.
+ */
+ instanceOf(value: T, constructor: Function, message?: string): void;
+
+ /**
+ * Asserts that value is not an instance of constructor.
+ *
+ * @type T Type of value.
+ * @param value Actual value.
+ * @param constructor Potential expected contructor of value.
+ * @param message Message to display on error.
+ */
+ notInstanceOf(value: T, type: Function, message?: string): void;
+
+ /**
+ * Asserts that haystack includes needle.
+ *
+ * @param haystack Container string.
+ * @param needle Potential expected substring of haystack.
+ * @param message Message to display on error.
+ */
+ include(haystack: string, needle: string, message?: string): void;
+
+ /**
+ * Asserts that haystack includes needle.
+ *
+ * @type T Type of values in haystack.
+ * @param haystack Container array.
+ * @param needle Potential value contained in haystack.
+ * @param message Message to display on error.
+ */
+ include(haystack: T[], needle: T, message?: string): void;
+
+ /**
+ * Asserts that haystack does not include needle.
+ *
+ * @param haystack Container string.
+ * @param needle Potential expected substring of haystack.
+ * @param message Message to display on error.
+ */
+ notInclude(haystack: string, needle: any, message?: string): void;
+
+ /**
+ * Asserts that haystack does not include needle.
+ *
+ * @type T Type of values in haystack.
+ * @param haystack Container array.
+ * @param needle Potential value contained in haystack.
+ * @param message Message to display on error.
+ */
+ notInclude(haystack: any[], needle: any, message?: string): void;
+
+ /**
+ * Asserts that value matches the regular expression regexp.
+ *
+ * @param value Actual value.
+ * @param regexp Potential match of value.
+ * @param message Message to display on error.
+ */
+ match(value: string, regexp: RegExp, message?: string): void;
+
+ /**
+ * Asserts that value does not match the regular expression regexp.
+ *
+ * @param value Actual value.
+ * @param regexp Potential match of value.
+ * @param message Message to display on error.
+ */
+ notMatch(expected: any, regexp: RegExp, message?: string): void;
+
+ /**
+ * Asserts that object has a property named by property.
+ *
+ * @type T Type of object.
+ * @param object Container object.
+ * @param property Potential contained property of object.
+ * @param message Message to display on error.
+ */
+ property(object: T, property: string /* keyof T */, message?: string): void;
+
+ /**
+ * Asserts that object has a property named by property.
+ *
+ * @type T Type of object.
+ * @param object Container object.
+ * @param property Potential contained property of object.
+ * @param message Message to display on error.
+ */
+ notProperty(object: T, property: string /* keyof T */, message?: string): void;
+
+ /**
+ * Asserts that object has a property named by property, which can be a string
+ * using dot- and bracket-notation for deep reference.
+ *
+ * @type T Type of object.
+ * @param object Container object.
+ * @param property Potential contained property of object.
+ * @param message Message to display on error.
+ */
+ deepProperty(object: T, property: string, message?: string): void;
+
+ /**
+ * Asserts that object does not have a property named by property, which can be a
+ * string using dot- and bracket-notation for deep reference.
+ *
+ * @type T Type of object.
+ * @param object Container object.
+ * @param property Potential contained property of object.
+ * @param message Message to display on error.
+ */
+ notDeepProperty(object: T, property: string, message?: string): void;
+
+ /**
+ * Asserts that object has a property named by property with value given by value.
+ *
+ * @type T Type of object.
+ * @type V Type of value.
+ * @param object Container object.
+ * @param property Potential contained property of object.
+ * @param value Potential expected property value.
+ * @param message Message to display on error.
+ */
+ propertyVal(object: T, property: string /* keyof T */, value: V, message?: string): void;
+
+ /**
+ * Asserts that object has a property named by property with value given by value.
+ *
+ * @type T Type of object.
+ * @type V Type of value.
+ * @param object Container object.
+ * @param property Potential contained property of object.
+ * @param value Potential expected property value.
+ * @param message Message to display on error.
+ */
+ propertyNotVal(object: T, property: string /* keyof T */, value: V, message?: string): void;
+
+ /**
+ * Asserts that object has a property named by property, which can be a string
+ * using dot- and bracket-notation for deep reference.
+ *
+ * @type T Type of object.
+ * @type V Type of value.
+ * @param object Container object.
+ * @param property Potential contained property of object.
+ * @param value Potential expected property value.
+ * @param message Message to display on error.
+ */
+ deepPropertyVal(object: T, property: string, value: V, message?: string): void;
+
+ /**
+ * Asserts that object does not have a property named by property, which can be a
+ * string using dot- and bracket-notation for deep reference.
+ *
+ * @type T Type of object.
+ * @type V Type of value.
+ * @param object Container object.
+ * @param property Potential contained property of object.
+ * @param value Potential expected property value.
+ * @param message Message to display on error.
+ */
+ deepPropertyNotVal(object: T, property: string, value: T, message?: string): void;
+
+ /**
+ * Asserts that object has a length property with the expected value.
+ *
+ * @type T Type of object.
+ * @param object Container object.
+ * @param length Potential expected length of object.
+ * @param message Message to display on error.
+ */
+ lengthOf(object: T, length: number, message?: string): void;
+
+ /**
+ * Asserts that fn will throw an error.
+ *
+ * @param fn Function that may throw.
+ * @param message Message to display on error.
+ */
+ throw(fn: Function, message?: string): void;
+
+ /**
+ * Asserts that function will throw an error with message matching regexp.
+ *
+ * @param fn Function that may throw.
+ * @param regExp Potential expected message match.
+ * @param message Message to display on error.
+ */
throw(fn: Function, regExp: RegExp): void;
- throw(fn: Function, errType: Function, msg?: string): void;
- throw(fn: Function, errType: Function, regExp: RegExp): void;
- throws(fn: Function, msg?: string): void;
+ /**
+ * Asserts that function will throw an error that is an instance of constructor.
+ *
+ * @param fn Function that may throw.
+ * @param constructor Potential expected error constructor.
+ * @param message Message to display on error.
+ */
+ throw(fn: Function, constructor: Function, message?: string): void;
+
+ /**
+ * Asserts that function will throw an error that is an instance of constructor
+ * and an error with message matching regexp.
+ *
+ * @param fn Function that may throw.
+ * @param constructor Potential expected error constructor.
+ * @param message Message to display on error.
+ */
+ throw(fn: Function, constructor: Function, regExp: RegExp): void;
+
+ /**
+ * Asserts that fn will throw an error.
+ *
+ * @param fn Function that may throw.
+ * @param message Message to display on error.
+ */
+ throws(fn: Function, message?: string): void;
+
+ /**
+ * Asserts that function will throw an error with message matching regexp.
+ *
+ * @param fn Function that may throw.
+ * @param regExp Potential expected message match.
+ * @param message Message to display on error.
+ */
throws(fn: Function, regExp: RegExp): void;
- throws(fn: Function, errType: Function, msg?: string): void;
+
+ /**
+ * Asserts that function will throw an error that is an instance of constructor.
+ *
+ * @param fn Function that may throw.
+ * @param constructor Potential expected error constructor.
+ * @param message Message to display on error.
+ */
+ throws(fn: Function, errType: Function, message?: string): void;
+
+ /**
+ * Asserts that function will throw an error that is an instance of constructor
+ * and an error with message matching regexp.
+ *
+ * @param fn Function that may throw.
+ * @param constructor Potential expected error constructor.
+ * @param message Message to display on error.
+ */
throws(fn: Function, errType: Function, regExp: RegExp): void;
- Throw(fn: Function, msg?: string): void;
+ /**
+ * Asserts that fn will throw an error.
+ *
+ * @param fn Function that may throw.
+ * @param message Message to display on error.
+ */
+ Throw(fn: Function, message?: string): void;
+
+ /**
+ * Asserts that function will throw an error with message matching regexp.
+ *
+ * @param fn Function that may throw.
+ * @param regExp Potential expected message match.
+ * @param message Message to display on error.
+ */
Throw(fn: Function, regExp: RegExp): void;
- Throw(fn: Function, errType: Function, msg?: string): void;
+
+ /**
+ * Asserts that function will throw an error that is an instance of constructor.
+ *
+ * @param fn Function that may throw.
+ * @param constructor Potential expected error constructor.
+ * @param message Message to display on error.
+ */
+ Throw(fn: Function, errType: Function, message?: string): void;
+
+ /**
+ * Asserts that function will throw an error that is an instance of constructor
+ * and an error with message matching regexp.
+ *
+ * @param fn Function that may throw.
+ * @param constructor Potential expected error constructor.
+ * @param message Message to display on error.
+ */
Throw(fn: Function, errType: Function, regExp: RegExp): void;
- doesNotThrow(fn: Function, msg?: string): void;
+ /**
+ * Asserts that fn will not throw an error.
+ *
+ * @param fn Function that may throw.
+ * @param message Message to display on error.
+ */
+ doesNotThrow(fn: Function, message?: string): void;
+
+ /**
+ * Asserts that function will throw an error with message matching regexp.
+ *
+ * @param fn Function that may throw.
+ * @param regExp Potential expected message match.
+ * @param message Message to display on error.
+ */
doesNotThrow(fn: Function, regExp: RegExp): void;
- doesNotThrow(fn: Function, errType: Function, msg?: string): void;
+
+ /**
+ * Asserts that function will throw an error that is an instance of constructor.
+ *
+ * @param fn Function that may throw.
+ * @param constructor Potential expected error constructor.
+ * @param message Message to display on error.
+ */
+ doesNotThrow(fn: Function, errType: Function, message?: string): void;
+
+ /**
+ * Asserts that function will throw an error that is an instance of constructor
+ * and an error with message matching regexp.
+ *
+ * @param fn Function that may throw.
+ * @param constructor Potential expected error constructor.
+ * @param message Message to display on error.
+ */
doesNotThrow(fn: Function, errType: Function, regExp: RegExp): void;
- operator(val: any, operator: string, val2: any, msg?: string): void;
- closeTo(act: number, exp: number, delta: number, msg?: string): void;
- approximately(act: number, exp: number, delta: number, msg?: string): void;
+ /**
+ * Compares two values using operator.
+ *
+ * @param val1 Left value during comparison.
+ * @param operator Comparison operator.
+ * @param val2 Right value during comparison.
+ * @param message Message to display on error.
+ */
+ operator(val1: OperatorComparable, operator: Operator, val2: OperatorComparable, message?: string): void;
- sameMembers(set1: any[], set2: any[], msg?: string): void;
- sameDeepMembers(set1: any[], set2: any[], msg?: string): void;
- includeMembers(superset: any[], subset: any[], msg?: string): void;
- includeDeepMembers(superset: any[], subset: any[], msg?: string): void;
+ /**
+ * Asserts that the target is equal to expected, to within a +/- delta range.
+ *
+ * @param actual Actual value
+ * @param expected Potential expected value.
+ * @param delta Maximum differenced between values.
+ * @param message Message to display on error.
+ */
+ closeTo(actual: number, expected: number, delta: number, message?: string): void;
- ifError(val: any, msg?: string): void;
+ /**
+ * Asserts that the target is equal to expected, to within a +/- delta range.
+ *
+ * @param actual Actual value
+ * @param expected Potential expected value.
+ * @param delta Maximum differenced between values.
+ * @param message Message to display on error.
+ */
+ approximately(act: number, exp: number, delta: number, message?: string): void;
- isExtensible(obj: {}, msg?: string): void;
- extensible(obj: {}, msg?: string): void;
- isNotExtensible(obj: {}, msg?: string): void;
- notExtensible(obj: {}, msg?: string): void;
+ /**
+ * Asserts that set1 and set2 have the same members. Order is not take into account.
+ *
+ * @type T Type of set values.
+ * @param set1 Actual set of values.
+ * @param set2 Potential expected set of values.
+ * @param message Message to display on error.
+ */
+ sameMembers(set1: T[], set2: T[], message?: string): void;
- isSealed(obj: {}, msg?: string): void;
- sealed(obj: {}, msg?: string): void;
- isNotSealed(obj: {}, msg?: string): void;
- notSealed(obj: {}, msg?: string): void;
+ /**
+ * Asserts that set1 and set2 have the same members using deep equality checking.
+ * Order is not take into account.
+ *
+ * @type T Type of set values.
+ * @param set1 Actual set of values.
+ * @param set2 Potential expected set of values.
+ * @param message Message to display on error.
+ */
+ sameDeepMembers(set1: T[], set2: T[], message?: string): void;
- isFrozen(obj: Object, msg?: string): void;
- frozen(obj: Object, msg?: string): void;
- isNotFrozen(obj: Object, msg?: string): void;
- notFrozen(obj: Object, msg?: string): void;
+ /**
+ * Asserts that subset is included in superset. Order is not take into account.
+ *
+ * @type T Type of set values.
+ * @param superset Actual set of values.
+ * @param subset Potential contained set of values.
+ * @param message Message to display on error.
+ */
+ includeMembers(superset: T[], subset: T[], message?: string): void;
- oneOf(inList: any, list: any[], msg?: string): void;
+ /**
+ * Asserts that subset is included in superset using deep equality checking.
+ * Order is not take into account.
+ *
+ * @type T Type of set values.
+ * @param superset Actual set of values.
+ * @param subset Potential contained set of values.
+ * @param message Message to display on error.
+ */
+ includeDeepMembers(superset: T[], subset: T[], message?: string): void;
+
+ /**
+ * Asserts that non-object, non-array value inList appears in the flat array list.
+ *
+ * @type T Type of list values.
+ * @param inList Value expected to be in the list.
+ * @param list List of values.
+ * @param message Message to display on error.
+ */
+ oneOf(inList: T, list: T[], message?: string): void;
+
+ /**
+ * Asserts that a function changes the value of a property.
+ *
+ * @type T Type of object.
+ * @param modifier Function to run.
+ * @param object Container object.
+ * @param property Property of object expected to be modified.
+ * @param message Message to display on error.
+ */
+ changes(modifier: Function, object: T, property: string /* keyof T */, message?: string): void
+
+ /**
+ * Asserts that a function does not change the value of a property.
+ *
+ * @type T Type of object.
+ * @param modifier Function to run.
+ * @param object Container object.
+ * @param property Property of object expected not to be modified.
+ * @param message Message to display on error.
+ */
+ doesNotChange(modifier: Function, object: T, property: string /* keyof T */, message?: string): void
+
+ /**
+ * Asserts that a function increases an object property.
+ *
+ * @type T Type of object.
+ * @param modifier Function to run.
+ * @param object Container object.
+ * @param property Property of object expected to be increased.
+ * @param message Message to display on error.
+ */
+ increases(modifier: Function, object: T, property: string /* keyof T */, message?: string): void
+
+ /**
+ * Asserts that a function does not increase an object property.
+ *
+ * @type T Type of object.
+ * @param modifier Function to run.
+ * @param object Container object.
+ * @param property Property of object expected not to be increased.
+ * @param message Message to display on error.
+ */
+ doesNotIncrease(modifier: Function, object: T, property: string /* keyof T */, message?: string): void
+
+ /**
+ * Asserts that a function decreases an object property.
+ *
+ * @type T Type of object.
+ * @param modifier Function to run.
+ * @param object Container object.
+ * @param property Property of object expected to be decreased.
+ * @param message Message to display on error.
+ */
+ decreases(modifier: Function, object: T, property: string /* keyof T */, message?: string): void
+
+ /**
+ * Asserts that a function does not decrease an object property.
+ *
+ * @type T Type of object.
+ * @param modifier Function to run.
+ * @param object Container object.
+ * @param property Property of object expected not to be decreased.
+ * @param message Message to display on error.
+ */
+ doesNotDecrease(modifier: Function, object: T, property: string /* keyof T */, message?: string): void
+
+ /**
+ * Asserts if value is not a false value, and throws if it is a true value.
+ *
+ * @type T Type of object.
+ * @param object Actual value.
+ * @param message Message to display on error.
+ * @remarks This is added to allow for chai to be a drop-in replacement for
+ * Node’s assert class.
+ */
+ ifError(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is extensible (can have new properties added to it).
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ isExtensible(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is extensible (can have new properties added to it).
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ extensible(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is not extensible.
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ isNotExtensible(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is not extensible.
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ notExtensible(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is sealed (can have new properties added to it
+ * and its existing properties cannot be removed).
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ isSealed(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is sealed (can have new properties added to it
+ * and its existing properties cannot be removed).
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ sealed(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is not sealed.
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ isNotSealed(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is not sealed.
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ notSealed(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is frozen (cannot have new properties added to it
+ * and its existing properties cannot be removed).
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ isFrozen(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is frozen (cannot have new properties added to it
+ * and its existing properties cannot be removed).
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ frozen(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is not frozen (cannot have new properties added to it
+ * and its existing properties cannot be removed).
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ isNotFrozen(object: T, message?: string): void;
+
+ /**
+ * Asserts that object is not frozen (cannot have new properties added to it
+ * and its existing properties cannot be removed).
+ *
+ * @type T Type of object
+ * @param object Actual value.
+ * @param message Message to display on error.
+ */
+ notFrozen(object: T, message?: string): void;
}
export interface Config {
@@ -406,7 +1241,7 @@ declare namespace Chai {
}
}
-declare var chai: Chai.ChaiStatic;
+declare const chai: Chai.ChaiStatic;
declare module "chai" {
export = chai;
diff --git a/types/cheap-ruler/cheap-ruler-tests.ts b/types/cheap-ruler/cheap-ruler-tests.ts
deleted file mode 100644
index 8197622eae..0000000000
--- a/types/cheap-ruler/cheap-ruler-tests.ts
+++ /dev/null
@@ -1,61 +0,0 @@
-import * as cheapRuler from 'cheap-ruler'
-
-// -- Fixtures --
-const bbox = [30.5, 50.5, 31, 51]
-const point1 = [30.5, 50.5]
-const point2 = [30.51, 50.49]
-const unit = 'miles'
-const lineString = {
- "type": "Feature",
- "properties": {},
- "geometry": {
- "type": "LineString",
- "coordinates": [
- [-77.031669, 38.878605],
- [-77.029609, 38.881946],
- [-77.020339, 38.884084],
- [-77.025661, 38.885821],
- [-77.021884, 38.889563],
- [-77.019824, 38.892368]
- ]
- }
-}
-const line = lineString.geometry.coordinates
-const polygon = [[
- [-67.031, 50.458], [-67.031, 50.534], [-66.929, 50.534],
- [-66.929, 50.458], [-67.031, 50.458]
-]]
-const points = [
- [-67.031, 50.458], [-67.031, 50.534],
- [-66.929, 50.534], [-66.929, 50.458]
-]
-
-// -- Test initiators --
-cheapRuler(35.05)
-cheapRuler(35.05, 'miles')
-cheapRuler(35.05, unit)
-cheapRuler.fromTile(1567, 12)
-cheapRuler.fromTile(1567, 12, 'miles')
-cheapRuler.fromTile(1567, 12, unit)
-
-// -- Test units --
-cheapRuler.units
-cheapRuler.units.miles
-cheapRuler.units.kilometers
-50 * cheapRuler.units.yards / cheapRuler.units.meters
-
-// -- Test cheapRuler --
-const ruler = cheapRuler(35.05)
-
-ruler.distance(point1, point2)
-ruler.bearing(point1, point2)
-ruler.destination(point1, 0.1, 90)
-ruler.lineDistance(points)
-ruler.area(polygon)
-ruler.along(line, 2.5)
-ruler.pointOnLine(line, point1).point
-ruler.lineSlice(point1, point2, line)
-ruler.lineSliceAlong(10, 20, line)
-ruler.bufferPoint(point1, 0.01)
-ruler.bufferBBox(bbox, 0.2)
-ruler.insideBBox(point1, bbox)
\ No newline at end of file
diff --git a/types/cheap-ruler/index.d.ts b/types/cheap-ruler/index.d.ts
deleted file mode 100644
index 91f417d490..0000000000
--- a/types/cheap-ruler/index.d.ts
+++ /dev/null
@@ -1,216 +0,0 @@
-// Type definitions for cheap-ruler 2.4.1
-// Project: https://github.com/mapbox/cheap-ruler
-// Definitions by: Denis Carriere
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-declare module "cheap-ruler" {
- type BBox = [number, number, number, number] | number[]
- type Point = [number, number] | number[]
- type Line = Array
- type Points = Array
- type Polygon = Array>
-
- interface TemplateUnits {
- kilometers: number
- miles: number
- nauticalmiles: number
- meters: number
- metres: number
- yards: number
- feet: number
- inches: number
- }
- interface InterfacePointOnLine {
- point: Point
- index: number
- t: number
- }
- class CheapRuler {
- /**
- * Given two points of the form [longitude, latitude], returns the distance.
- *
- * @param {Point} a point [longitude, latitude]
- * @param {Point} b point [longitude, latitude]
- * @returns {number} distance
- * @example
- * var distance = ruler.distance([30.5, 50.5], [30.51, 50.49]);
- * //=distance
- */
- distance(a: Point, b: Point): number;
-
- /**
- * Returns the bearing between two points in angles.
- *
- * @param {Point} a point [longitude, latitude]
- * @param {Point} b point [longitude, latitude]
- * @returns {number} bearing
- * @example
- * var bearing = ruler.bearing([30.5, 50.5], [30.51, 50.49]);
- * //=bearing
- */
- bearing(a: Point, b: Point): number;
-
- /**
- * Returns a new point given distance and bearing from the starting point.
- *
- * @param {Point} p point [longitude, latitude]
- * @param {number} dist distance
- * @param {number} bearing
- * @returns {Point} point [longitude, latitude]
- * @example
- * var point = ruler.destination([30.5, 50.5], 0.1, 90);
- * //=point
- */
- destination(p: Point, dist: number, bearing: number): Point;
-
- /**
- * Given a line (an array of points), returns the total line distance.
- *
- * @param {Points} points [longitude, latitude]
- * @returns {number} total line distance
- * @example
- * var length = ruler.lineDistance([
- * [-67.031, 50.458], [-67.031, 50.534],
- * [-66.929, 50.534], [-66.929, 50.458]
- * ]);
- * //=length
- */
- lineDistance(points: Points): number;
-
- /**
- * Given a polygon (an array of rings, where each ring is an array of points), returns the area.
- *
- * @param {Polygon} polygon
- * @returns {number} area value in the specified units (square kilometers by default)
- * @example
- * var area = ruler.area([[
- * [-67.031, 50.458], [-67.031, 50.534], [-66.929, 50.534],
- * [-66.929, 50.458], [-67.031, 50.458]
- * ]]);
- * //=area
- */
- area(polygon: Polygon): number;
-
- /**
- * Returns the point at a specified distance along the line.
- *
- * @param {Line} line
- * @param {number} dist distance
- * @returns {Point} point [longitude, latitude]
- * @example
- * var point = ruler.along(line, 2.5);
- * //=point
- */
- along(line: Line, dist: number): Point
-
- /**
- * Returns an object of the form {point, index} where point is closest point on the line from the given point, and index is the start index of the segment with the closest point.
- *
- * @pointOnLine
- * @param {Line} line
- * @param {Point} p point [longitude, latitude]
- * @returns {Object} {point, index}
- * @example
- * var point = ruler.pointOnLine(line, [-67.04, 50.5]).point;
- * //=point
- */
- pointOnLine(line: Line, p: Point): InterfacePointOnLine
-
- /**
- * Returns a part of the given line between the start and the stop points (or their closest points on the line).
- *
- * @param {Point} start point [longitude, latitude]
- * @param {Point} stop point [longitude, latitude]
- * @param {Line} line
- * @returns {Line} line part of a line
- * @example
- * var line2 = ruler.lineSlice([-67.04, 50.5], [-67.05, 50.56], line1);
- * //=line2
- */
- lineSlice(start: Point, stop: Point, line: Line): Line
-
- /**
- * Returns a part of the given line between the start and the stop points indicated by distance along the line.
- *
- * @param {number} start distance
- * @param {number} stop distance
- * @param {Line} line
- * @returns {Line} line part of a line
- * @example
- * var line2 = ruler.lineSliceAlong(10, 20, line1);
- * //=line2
- */
- lineSliceAlong(start: number, stop: number, line: Line): Line
-
- /**
- * Given a point, returns a bounding box object ([w, s, e, n]) created from the given point buffered by a given distance.
- *
- * @param {Point} p point [longitude, latitude]
- * @param {number} buffer
- * @returns {BBox} box object ([w, s, e, n])
- * @example
- * var bbox = ruler.bufferPoint([30.5, 50.5], 0.01);
- * //=bbox
- */
- bufferPoint(p: Point, buffer: number): BBox
-
- /**
- * Given a bounding box, returns the box buffered by a given distance.
- *
- * @param {BBox} box object ([w, s, e, n])
- * @param {number} buffer
- * @returns {BBox} box object ([w, s, e, n])
- * @example
- * var bbox = ruler.bufferBBox([30.5, 50.5, 31, 51], 0.2);
- * //=bbox
- */
- bufferBBox(bbox: BBox, buffer: number): BBox
-
- /**
- * Returns true if the given point is inside in the given bounding box, otherwise false.
- *
- * @param {Point} p point [longitude, latitude]
- * @param {Point} box object ([w, s, e, n])
- * @returns {boolean}
- * @example
- * var inside = ruler.insideBBox([30.5, 50.5], [30, 50, 31, 51]);
- * //=inside
- */
- insideBBox(p: Point, bbox: BBox): boolean
- }
- /**
- * A collection of very fast approximations to common geodesic measurements. Useful for performance-sensitive code that measures things on a city scale.
- *
- * @param {number} lat latitude
- * @param {string} [units='kilometers']
- * @returns {CheapRuler}
- * @example
- * var ruler = cheapRuler(35.05, 'miles');
- * //=ruler
- */
- function cheapRuler(lat: number, units?: string): CheapRuler;
- namespace cheapRuler {
- /**
- * Multipliers for converting between units.
- *
- * @example
- * // convert 50 meters to yards
- * 50 * cheapRuler.units.yards / cheapRuler.units.meters;
- */
- const units: TemplateUnits
-
- /**
- * Creates a ruler object from tile coordinates (y and z). Convenient in tile-reduce scripts.
- *
- * @param {number} y
- * @param {number} z
- * @param {string} [units='kilometers']
- * @returns {CheapRuler}
- * @example
- * var ruler = cheapRuler.fromTile(1567, 12);
- * //=ruler
- */
- function fromTile(y: number, z: number, units?: string): CheapRuler;
- }
- export = cheapRuler
-}
\ No newline at end of file
diff --git a/types/chrome/index.d.ts b/types/chrome/index.d.ts
index 8c0c3bf5f2..8fe0f9b993 100644
--- a/types/chrome/index.d.ts
+++ b/types/chrome/index.d.ts
@@ -4269,6 +4269,12 @@ declare namespace chrome.notifications {
appIconMaskUrl?: string;
/** Optional. A URL to the image thumbnail for image-type notifications. URLs have the same restrictions as iconUrl. */
imageUrl?: string;
+ /**
+ * Indicates that the notification should remain visible on screen until the user activates or dismisses the notification.
+ * This defaults to false.
+ * @since Chrome 50
+ */
+ requireInteraction?: boolean;
}
interface NotificationClosedEvent extends chrome.events.Event<(notificationId: string, byUser: boolean) => void> {}
@@ -7100,12 +7106,13 @@ declare namespace chrome.webNavigation {
transitionQualifiers: string[];
}
- interface WebNavigationRequestFilter extends chrome.webRequest.RequestFilter {
- /** fulfills the webRequest.RequestFilter interface even though it is under web navigation **/
+ interface WebNavigationEventFilter {
+ /** Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event. */
+ url: chrome.events.UrlFilter[];
}
interface WebNavigationEvent extends chrome.events.Event<(details: T) => void> {
- addListener(callback: (details: T) => void, filters?: WebNavigationRequestFilter): void;
+ addListener(callback: (details: T) => void, filters?: WebNavigationEventFilter): void;
}
interface WebNavigationFramedEvent extends WebNavigationEvent {}
@@ -7215,7 +7222,7 @@ declare namespace chrome.webRequest {
*/
types?: string[];
/** A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out. */
- urls: string[] | RegExp[] | "";
+ urls: string[];
/** Optional. */
windowId?: number;
diff --git a/types/chrome/test/index.ts b/types/chrome/test/index.ts
index 3da3f534be..ffe1ece74d 100644
--- a/types/chrome/test/index.ts
+++ b/types/chrome/test/index.ts
@@ -171,7 +171,7 @@ function catBlock () {
["blocking"]);
}
-// webNavigation.onBeforeNavigate.addListener example similar api to onBeforeRequest but without extra spec
+// webNavigation.onBeforeNavigate.addListener example
function beforeRedditNavigation() {
chrome.webNavigation.onBeforeNavigate.addListener(function (requestDetails) {
console.log("URL we want to redirect to: " + requestDetails.url);
@@ -180,18 +180,10 @@ function beforeRedditNavigation() {
return;
}
- let url = new URL(requestDetails.url);
- let splitUrl = url.hostname.split('.');
- //` Note: Does not cover the XX.co.uk type edge case
- let host = (splitUrl[(splitUrl.length -1) - 1]);
-
- if (host === null) {
- return;
- } else if (host === "reddit") {
- alert("Were you trying to go on reddit, during working hours? :(")
- return;
- }
- },{urls: ["http://*/*"], types: ["image"]});
+ alert("Were you trying to go on reddit, during working hours? :(")
+ },{url: [
+ {hostSuffix: ".reddit.com"}
+ ]});
}
// for chrome.tabs.InjectDetails.frameId
diff --git a/types/color/index.d.ts b/types/color/index.d.ts
index 83302cc38d..0b7b505c01 100644
--- a/types/color/index.d.ts
+++ b/types/color/index.d.ts
@@ -66,6 +66,7 @@ declare namespace Color {
keyword(): string | undefined;
hex(color: string): Color;
hex(): string;
+ rgb(): Color;
rgbNumber(): number;
luminosity(): number;
contrast(color: Color): number;
diff --git a/types/ej.web.all/ej.web.all-tests.ts b/types/ej.web.all/ej.web.all-tests.ts
index 50b4c117e4..cae7001218 100644
--- a/types/ej.web.all/ej.web.all-tests.ts
+++ b/types/ej.web.all/ej.web.all-tests.ts
@@ -20,7 +20,7 @@ module AccordionComponent {
});
}
-
+
module AutocompleteComponent{
var carList = [
@@ -44,15 +44,15 @@ module AutocompleteComponent{
"Triumph Spitfire", "Toyota 2000GT",
"Volvo P1800", "Volkswagen Shirako"
];
- $(function () {
- var autocompleteInstance =new ej.Autocomplete($("#selectCar"), {
+ $(function () {
+ var autocompleteInstance =new ej.Autocomplete($("#selectCar"), {
width: "100%",
watermarkText: "Select a car",
dataSource: carList,
enableAutoFill: true,
showPopupButton: true,
multiSelectMode: "delimiter"
- });
+ });
});
}
@@ -150,7 +150,7 @@ module ButtonComponent {
});
});
}
-
+
@@ -166,7 +166,7 @@ module ChartComponent {
range: { min: 25, max: 50, interval: 5 },
labelFormat: "{value}%",
title: { text: "Efficiency" },
-
+
},
commonSeriesOptions:
{
@@ -181,28 +181,28 @@ module ChartComponent {
},
visible: true
},
- border : {width: 2}
- },
- series:
+ border : {width: 2}
+ },
+ series:
[
{
- points: [{ x: 2005, y: 28 }, { x: 2006, y: 25 },{ x: 2007, y: 26 }, { x: 2008, y: 27 },
- { x: 2009, y: 32 }, { x: 2010, y: 35 }, { x: 2011, y: 30 }],
+ points: [{ x: 2005, y: 28 }, { x: 2006, y: 25 },{ x: 2007, y: 26 }, { x: 2008, y: 27 },
+ { x: 2009, y: 32 }, { x: 2010, y: 35 }, { x: 2011, y: 30 }],
name: 'India'
- },
+ },
{
- points: [{ x: 2005, y: 31 }, { x: 2006, y: 28 },{ x: 2007, y: 30 }, { x: 2008, y: 36 },
- { x: 2009, y: 36 }, { x: 2010, y: 39 }, { x: 2011, y: 37 }],
+ points: [{ x: 2005, y: 31 }, { x: 2006, y: 28 },{ x: 2007, y: 30 }, { x: 2008, y: 36 },
+ { x: 2009, y: 36 }, { x: 2010, y: 39 }, { x: 2011, y: 37 }],
name: 'Germany'
},
{
- points: [{ x: 2005, y: 36 }, { x: 2006, y: 32 },{ x: 2007, y: 34 }, { x: 2008, y: 41 },
- { x: 2009, y: 42 }, { x: 2010, y: 42 }, { x: 2011, y: 43 }],
+ points: [{ x: 2005, y: 36 }, { x: 2006, y: 32 },{ x: 2007, y: 34 }, { x: 2008, y: 41 },
+ { x: 2009, y: 42 }, { x: 2010, y: 42 }, { x: 2011, y: 43 }],
name: 'England'
- },
+ },
{
- points: [{ x: 2005, y: 39 }, { x: 2006, y: 36 },{ x: 2007, y: 40 }, { x: 2008, y: 44 },
- { x: 2009, y: 45 }, { x: 2010, y: 48 }, { x: 2011, y: 46 }],
+ points: [{ x: 2005, y: 39 }, { x: 2006, y: 36 },{ x: 2007, y: 40 }, { x: 2008, y: 44 },
+ { x: 2009, y: 45 }, { x: 2010, y: 48 }, { x: 2011, y: 46 }],
name: 'France'
}
],
@@ -290,7 +290,7 @@ module circulargaugecomponent {
backgroundColor: "#f5b43f",
border: { color: "#f5b43f" }
}]
- }]
+ }]
});
});
}
@@ -377,7 +377,7 @@ $(function () {
createConnector({ name: "connector6", sourceNode: "Project", targetNode: "Resources", labels: [createLabel({ "text": "No" })] })
]
});
-
+
});
function createNode(option: ej.datavisualization.Diagram.Node) {
@@ -402,7 +402,7 @@ function createLabel(options : any) {
return options;
}
-
+
module DialogComponent {
$(function () {
@@ -452,7 +452,7 @@ module digitalgaugecomponent {
}
-
+
@@ -472,12 +472,12 @@ module DropDownListComponent {
enableFilterSearch: true,
caseSensitiveSearch: true,
enableIncrementalSearch: true,
- enablePopupResize: true,
+ enablePopupResize: true,
delimiterChar: ";",
multiSelectMode: ej.MultiSelectMode.Delimiter,
maxPopupHeight: "300px",
- minPopupHeight: "150px",
- maxPopupWidth: "500px",
+ minPopupHeight: "150px",
+ maxPopupWidth: "500px",
minPopupWidth: "350px",
showCheckbox: true,
showRoundedCorner: true
@@ -513,7 +513,7 @@ module GanttComponent {
dataSource: (window).projectData,
allowColumnResize: true,
allowSorting: true,
- allowSelection: true,
+ allowSelection: true,
enableContextMenu: true,
taskIdMapping: "taskID",
allowDragAndDrop: true,
@@ -554,7 +554,7 @@ module GanttComponent {
treeColumnIndex: 1,
isResponsive: true,
});
-});
+});
}
@@ -596,7 +596,7 @@ module GridComponent {
-var columns = ["Vegie-spread", "Tofuaa", "Alice Mutton", "Konbu", "Fløtemysost"]
+var columns = ["Vegie-spread", "Tofuaa", "Alice Mutton", "Konbu", "Fløtemysost"]
var itemSource: any[] = [];
for (var i = 0; i < columns.length; i++) {
for (var j = 0; j < 6; j++) {
@@ -670,7 +670,7 @@ module KanbanComponent {
});
}
-
+
module lineargaugecomponent {
@@ -696,14 +696,14 @@ module lineargaugecomponent {
backgroundColor: "#E94649",
border: { color: "#E94649" }, startWidth: 4, endWidth: 4
}]
- }]
+ }]
});
});
}
+
-
-
+
module ListBoxComponent {
$(function () {
@@ -713,12 +713,12 @@ module ListBoxComponent {
});
}
-
+
module ListviewComponent {
$(function () {
var listviewInstance = new ej.ListView($("#defaultlistview"), {
- enableCheckMark: true,
+ enableCheckMark: true,
width: 400
});
});
@@ -760,7 +760,7 @@ var world_map=
{ "type": "Feature", "properties": { "admin": "Switzerland", "name": "Switzerland", "continent": "Europe" }, "geometry": { "type": "Polygon", "coordinates": [[[9.594226108446346, 47.525058091820256], [9.632931756232974, 47.347601223329974], [9.479969516649019, 47.102809963563367], [9.932448357796657, 46.920728054382948], [10.442701450246627, 46.893546250997424], [10.36337812667861, 46.483571275409851], [9.922836541390378, 46.314899400409182], [9.182881707403054, 46.440214748716976], [8.966305779667804, 46.036931871111186], [8.489952426801322, 46.005150865251672], [8.316629672894377, 46.163642483090847], [7.755992058959832, 45.824490057959302], [7.273850945676655, 45.776947740250769], [6.843592970414504, 45.991146552100595], [6.500099724970424, 46.429672756529428], [6.022609490593537, 46.272989813820466], [6.037388950229, 46.725778713561859], [6.768713820023605, 47.287708238303686], [6.736571079138058, 47.541801255882838], [7.192202182655505, 47.449765529971003], [7.466759067422228, 47.620581976911794], [8.31730146651415, 47.613579820336255], [8.522611932009765, 47.830827541691285], [9.594226108446346, 47.525058091820256]]] } },
{ "type": "Feature", "properties": { "admin": "Chile", "name": "Chile", "continent": "South America" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[-68.634010227583147, -52.636370458874353], [-68.633349999999879, -54.8695], [-67.56244, -54.87001], [-66.95992, -54.89681], [-67.291029999999878, -55.30124], [-68.148629999999841, -55.61183], [-68.639990810811796, -55.580017999086877], [-69.2321, -55.49906], [-69.95809, -55.19843], [-71.00568, -55.05383], [-72.2639, -54.49514], [-73.2852, -53.957519999999874], [-74.66253, -52.83749], [-73.8381, -53.04743], [-72.43418, -53.7154], [-71.10773, -54.07433], [-70.591779999999787, -53.61583], [-70.26748, -52.93123], [-69.345649999999878, -52.5183], [-68.634010227583147, -52.636370458874353]]], [[[-68.219913092711224, -21.49434661223183], [-67.828179897722634, -22.872918796482178], [-67.106673550063604, -22.735924574476392], [-66.985233934177629, -22.986348565362825], [-67.328442959244128, -24.025303236590908], [-68.417652960876111, -24.518554782816874], [-68.386001146097342, -26.185016371365229], [-68.594799770772667, -26.50690886811126], [-68.295541551370391, -26.899339694935787], [-69.001234910748266, -27.521213881136127], [-69.656130337183143, -28.459141127233686], [-70.013550381129861, -29.367922865518544], [-69.919008348251921, -30.336339206668306], [-70.535068935819439, -31.365010267870279], [-70.074399380153622, -33.09120981214803], [-69.814776984319209, -33.273886000299839], [-69.817309129501453, -34.193571465798279], [-70.388049485949082, -35.169687595359441], [-70.364769253201658, -36.005088799789931], [-71.121880662709771, -36.65812387466233], [-71.118625047475419, -37.576827487947192], [-70.814664272734703, -38.552995293940732], [-71.413516608349042, -38.916022230791107], [-71.680761277946445, -39.808164157878061], [-71.915734015577542, -40.832339369470716], [-71.746803758415453, -42.051386407235988], [-72.148898078078517, -42.254888197601375], [-71.915423956983901, -43.408564548517404], [-71.464056159130493, -43.787611179378324], [-71.793622606071935, -44.207172133156099], [-71.329800788036195, -44.407521661151677], [-71.222778896759721, -44.784242852559409], [-71.659315558545316, -44.973688653341434], [-71.552009446891233, -45.560732924177117], [-71.917258470330196, -46.884838148791786], [-72.44735531278026, -47.738532810253517], [-72.331160854771937, -48.244238376661819], [-72.648247443314929, -48.878618259476774], [-73.415435757120022, -49.318436374712952], [-73.328050910114456, -50.378785088909865], [-72.975746832964617, -50.741450290734299], [-72.309973517532342, -50.677009779666342], [-72.329403856074023, -51.425956312872394], [-71.914803839796321, -52.009022305865912], [-69.498362189396076, -52.142760912637236], [-68.571545376241332, -52.299443855346247], [-69.461284349226617, -52.291950772663924], [-69.94277950710611, -52.537930590373243], [-70.8451016913545, -52.899200528525711], [-71.006332160105217, -53.833252042201345], [-71.429794684520928, -53.856454760300373], [-72.557942877884855, -53.531410001184447], [-73.702756720662862, -52.835069268607249], [-73.702756720662862, -52.835070076051487], [-74.946763475225154, -52.262753588419017], [-75.260026007778507, -51.62935475037321], [-74.976632453089806, -51.043395684615675], [-75.47975419788348, -50.378371677451547], [-75.608015102831942, -48.673772881871784], [-75.182769741502128, -47.711919447623153], [-74.126580980104677, -46.939253431995084], [-75.644395311165439, -46.647643324572016], [-74.69215369332305, -45.76397633238097], [-74.351709357384252, -44.10304412208788], [-73.240356004515192, -44.454960625995611], [-72.717803921179765, -42.383355808278985], [-73.388899909138232, -42.117532240569567], [-73.701335618774834, -43.365776462579738], [-74.33194312203257, -43.224958184584395], [-74.017957119427152, -41.794812920906828], [-73.677099372029943, -39.942212823243111], [-73.217592536090663, -39.258688653318508], [-73.505559455037044, -38.282882582351064], [-73.588060879191076, -37.156284681956016], [-73.166717088499283, -37.123780206044351], [-72.553136969681717, -35.508840020491022], [-71.861732143832555, -33.909092706031522], [-71.438450486929895, -32.418899428030819], [-71.668720669222424, -30.920644626592516], [-71.370082567007714, -30.095682061484997], [-71.48989437527645, -28.861442152625909], [-70.905123867461569, -27.640379734001193], [-70.724953986275963, -25.705924167587209], [-70.403965827095035, -23.628996677344542], [-70.091245897080668, -21.393319187101223], [-70.164419725205974, -19.756468194256183], [-70.372572394477714, -18.347975355708879], [-69.858443569605797, -18.092693780187027], [-69.590423753523979, -17.580011895419286], [-69.100246955019401, -18.260125420812653], [-68.966818406841824, -18.981683444904089], [-68.442225104430918, -19.405068454671419], [-68.757167121033703, -20.37265797290447], [-68.219913092711224, -21.49434661223183]]]] } },
{ "type": "Feature", "properties": { "admin": "China", "name": "China", "continent": "Asia" }, "geometry": { "type": "MultiPolygon", "coordinates": [[[[110.339187860151526, 18.678395087147603], [109.475209588663702, 18.19770091396861], [108.655207961056135, 18.507681993071397], [108.626217482540426, 19.367887885001974], [109.119055617308007, 19.821038519769385], [110.211598748822837, 20.101253973872073], [110.786550734502228, 20.077534491450077], [111.01005130416462, 19.695929877190732], [110.570646600386794, 19.255879218009305], [110.339187860151526, 18.678395087147603]]], [[[127.657407261262378, 49.760270494172929], [129.397817824420429, 49.440600084015429], [130.58229332898236, 48.729687404976112], [130.987281528853828, 47.790132351261391], [132.506671991099495, 47.788969631534876], [133.373595819228001, 48.183441677434914], [135.026311476786702, 48.478229885443902], [134.500813836810607, 47.578439846377833], [134.112362095272601, 47.212467352886719], [133.76964399631288, 46.116926988299056], [133.097126906466428, 45.14406647397216], [131.883454217659562, 45.32116160743643], [131.025212030156069, 44.967953192721573], [131.288555129115537, 44.111519680348252], [131.144687941614848, 42.929989732426932], [130.633866408409801, 42.903014634770543], [130.640015903852429, 42.39500946712527], [129.994267205933227, 42.985386867843793], [129.596668735879462, 42.424981797854592], [128.05221520397231, 41.994284572917984], [128.208433058790717, 41.466771552082534], [127.343782993683021, 41.503151760415953], [126.869083286649854, 41.816569322266155], [126.18204511932943, 41.107336127276362], [125.079941847840587, 40.569823716792449], [124.265624627785314, 39.928493353834135], [122.86757042856101, 39.637787583976255], [122.131387974130917, 39.170451768544623], [121.054554478032856, 38.89747101496291], [121.585994907722466, 39.360853583324136], [121.376757033372641, 39.750261338859524], [122.168595005381007, 40.422442531896046], [121.640358514493528, 40.946389878903304], [120.768628778161954, 40.593388169917596], [119.639602085449056, 39.898055935214209], [119.023463983233015, 39.252333075511096], [118.042748651197897, 39.204273993479674], [117.532702264477052, 38.73763580988409], [118.05969852098967, 38.061475531561051], [118.878149855628351, 37.897325344385898], [118.911636183753501, 37.448463853498723], [119.702802362142037, 37.156388658185072], [120.823457472823648, 37.870427761377968], [121.711258579597938, 37.481123358707165], [122.357937453298462, 37.454484157860684], [122.519994744965814, 36.930614325501828], [121.104163853033029, 36.651329047180432], [120.63700890511457, 36.111439520811125], [119.66456180224607, 35.609790554337728], [119.151208123858567, 34.909859117160458], [120.227524855633717, 34.360331936168613], [120.620369093916565, 33.37672272392512], [121.229014113450219, 32.460318711877186], [121.908145786630044, 31.692174384074683], [121.891919386890336, 30.949351508095098], [121.264257440273298, 30.676267401648712], [121.503519321784722, 30.14291494396425], [122.092113885589086, 29.832520453403156], [121.93842817595305, 29.018022365834803], [121.684438511238469, 28.225512600206677], [121.125661248866436, 28.135673122667178], [120.395473260582307, 27.053206895449385], [119.585496860839555, 25.740780544532605], [118.656871372554519, 24.547390855400234], [117.281606479970833, 23.624501451099714], [115.890735304835118, 22.782873236578094], [114.763827345846209, 22.668074042241663], [114.152546828265656, 22.223760077396204], [113.806779819800752, 22.548339748621423], [113.241077915501592, 22.051367499270462], [111.843592157032447, 21.550493679281512], [110.78546552942413, 21.39714386645533], [110.444039341271662, 20.34103261970639], [109.88986128137357, 20.282457383703441], [109.627655063924635, 21.008227037026725], [109.864488153118316, 21.395050970947516], [108.522812941524421, 21.715212307211821], [108.050180291782979, 21.552379869060101], [107.043420037872636, 21.8118989120299], [106.567273390735352, 22.21820486092474], [106.725403273548466, 22.794267889898375], [105.811247186305209, 22.976892401617899], [105.329209425886631, 23.352063300056976], [104.476858351664475, 22.819150092046918], [103.504514601660503, 22.703756618739217], [102.706992222100155, 22.708795070887696], [102.170435825613552, 22.464753119389336], [101.652017856861576, 22.318198757409554], [101.803119744882906, 21.174366766845051], [101.27002566936001, 21.201651923095167], [101.180005324307558, 21.436572984294052], [101.150032993578236, 21.849984442629015], [100.416537713627349, 21.558839423096654], [99.983489211021549, 21.742936713136451], [99.240898878987196, 22.118314317304559], [99.53199222208741, 22.949038804612591], [98.898749220782804, 23.142722072842581], [98.66026248575578, 24.063286037690002], [97.604719679762027, 23.897404690033049], [97.724609002679131, 25.083637193293036], [98.671838006589212, 25.91870250091349], [98.712093947344556, 26.743535874940243], [98.682690057370507, 27.508812160750658], [98.246230910233351, 27.747221381129172], [97.91198774616943, 28.335945136014367], [97.327113885490007, 28.261582749946339], [96.248833449287829, 28.411030992134467], [96.586590610747521, 28.830979519154361], [96.117678664131006, 29.452802028922513], [95.404802280664626, 29.031716620392157], [94.565990431702929, 29.27743805593996], [93.413347609432662, 28.640629380807233], [92.503118931043616, 27.896876329046442], [91.696656528696693, 27.771741848251615], [91.258853794319876, 28.040614325466343], [90.730513950567797, 28.064953925075738], [90.015828891971182, 28.296438503527177], [89.475810174521158, 28.042758897406365], [88.814248488320573, 27.299315904239389], [88.730325962278528, 28.086864732367552], [88.120440708369941, 27.876541652939572], [86.954517043000635, 27.974261786403524], [85.823319940131526, 28.203575954698742], [85.011638218123053, 28.642773952747369], [84.23457970575015, 28.839893703724691], [83.89899295444674, 29.320226141877633], [83.337115106137176, 29.463731594352193], [82.327512648450877, 30.115268052688204], [81.525804477874786, 30.422716986608659], [81.111256138029276, 30.183480943313402], [79.721366815107118, 30.882714748654728], [78.738894484374001, 31.515906073527045], [78.458446486326025, 32.61816437431272], [79.176128777995544, 32.483779812137747], [79.208891636068543, 32.994394639613738], [78.811086460285722, 33.506198025032397], [78.912268914713209, 34.321936346975768], [77.83745079947461, 35.494009507787794], [76.192848341785705, 35.89840342868785], [75.896897414050173, 36.666806138651872], [75.158027785140987, 37.133030910789152], [74.980002475895404, 37.419990139305888], [74.829985792952144, 37.990007025701445], [74.864815708316783, 38.378846340481587], [74.25751427602269, 38.606506862943476], [73.928852166646394, 38.505815334622717], [73.675379266254836, 39.431236884105566], [73.960013055318427, 39.660008449861714], [73.822243686828315, 39.893973497063136], [74.776862420556043, 40.366425279291619], [75.467827996730719, 40.56207225194867], [76.526368035797432, 40.427946071935132], [76.90448449087711, 41.066485907549648], [78.187196893226044, 41.185315863604799], [78.543660923175253, 41.582242540038713], [80.119430373051401, 42.12394074153822], [80.259990268885318, 42.34999929459908], [80.180150180994374, 42.920067857426844], [80.866206496101213, 43.180362046881008], [79.966106398441426, 44.917516994804622], [81.947070753918084, 45.317027492853143], [82.458925815769035, 45.539649563166499], [83.180483839860543, 47.330031236350735], [85.164290399113213, 47.000955715516099], [85.720483839870667, 47.452969468773077], [85.76823286330837, 48.455750637396896], [86.59877648310335, 48.549181626980605], [87.359970330762692, 49.214980780629148], [87.751264276076668, 49.297197984405464], [88.013832228551678, 48.599462795600594], [88.854297723346747, 48.069081732773007], [90.280825636763893, 47.693549099307901], [90.970809360724957, 46.88814606382293], [90.585768263718307, 45.719716091487491], [90.945539585334316, 45.286073309910243], [92.133890822318222, 45.115075995456429], [93.480733677141316, 44.97547211362], [94.688928664125356, 44.352331854828456], [95.306875441471504, 44.241330878265458], [95.762454868556688, 43.319449164394619], [96.349395786527808, 42.725635280928643], [97.451757440177971, 42.74888967546007], [99.515817498779995, 42.524691473961688], [100.845865513108279, 42.663804429691417], [101.833040399179936, 42.51487295182627], [103.312278273534787, 41.907468166667613], [104.522281935649005, 41.90834666601662], [104.964993931093431, 41.597409572916334], [106.129315627061658, 42.134327704428891], [107.744772576937976, 42.481515814781908], [109.243595819131428, 42.519446316084149], [110.412103306115299, 42.871233628911014], [111.129682244920218, 43.406834011400171], [111.82958784388137, 43.743118394539486], [111.667737257943202, 44.073175767587706], [111.348376906379428, 44.457441718110047], [111.87330610560025, 45.102079372735112], [112.436062453258842, 45.01164561622425], [113.463906691544196, 44.808893134127111], [114.46033165899604, 45.339816799493875], [115.985096470200133, 45.727235012386004], [116.717868280098855, 46.38820241961524], [117.421701287914246, 46.67273285581421], [118.874325799638711, 46.805412095723646], [119.663269891438745, 46.692679958678944], [119.772823927897562, 47.048058783550132], [118.866574334794947, 47.747060044946195], [118.064142694166719, 48.06673045510373], [117.295507440257438, 47.697709052107385], [116.308952671373234, 47.853410142602812], [115.742837355615734, 47.726544501326273], [115.485282017073018, 48.135382595403442], [116.191802199367601, 49.134598090199056], [116.67880089728618, 49.888531399121398], [117.879244419426371, 49.510983384796944], [119.288460728025839, 50.142882798862033], [119.279365675942358, 50.582907619827282], [120.182049595216924, 51.64356639261802], [120.738191359541972, 51.964115302124547], [120.725789015791975, 52.516226304730814], [120.177088657716865, 52.753886216841195], [121.003084751470226, 53.251401068731226], [122.245747918792858, 53.431725979213681], [123.571506789240843, 53.458804429734627], [125.068211297710434, 53.161044826868832], [125.946348911646169, 52.792798570356936], [126.564399041856959, 51.784255479532689], [126.939156528837657, 51.353894151405896], [127.287455682484904, 50.739797268265434], [127.657407261262378, 49.760270494172929]]]] } },
- { "type": "Feature", "properties": { "admin": "Ivory Coast", "name": "Côte d'Ivoire", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-2.856125047202397, 4.994475816259508], [-3.311084357100071, 4.984295559098014], [-4.008819545904941, 5.179813340674314], [-4.64991736491791, 5.168263658057084], [-5.834496222344525, 4.993700669775135], [-6.528769090185845, 4.705087795425015], [-7.518941209330434, 4.338288479017307], [-7.712159389669749, 4.364565944837721], [-7.63536821128403, 5.188159084489455], [-7.53971513511176, 5.313345241716517], [-7.570152553731686, 5.707352199725903], [-7.993692592795879, 6.126189683451541], [-8.311347622094017, 6.193033148621081], [-8.602880214868618, 6.467564195171659], [-8.385451626000572, 6.911800645368742], [-8.485445522485348, 7.395207831243068], [-8.439298468448696, 7.686042792181736], [-8.280703497744936, 7.687179673692156], [-8.221792364932197, 8.123328762235571], [-8.299048631208562, 8.316443589710302], [-8.203498907900878, 8.455453192575446], [-7.832100389019186, 8.575704250518625], [-8.079113735374348, 9.376223863152033], [-8.309616461612249, 9.789531968622439], [-8.22933712404682, 10.129020290563897], [-8.029943610048617, 10.206534939001711], [-7.89958980959237, 10.297382106970824], [-7.622759161804808, 10.147236232946792], [-6.850506557635057, 10.138993841996237], [-6.666460944027547, 10.430810655148447], [-6.493965013037267, 10.411302801958268], [-6.205222947606429, 10.524060777219132], [-6.050452032892266, 10.096360785355442], [-5.816926235365286, 10.222554633012191], [-5.404341599946973, 10.370736802609144], [-4.954653286143098, 10.152713934769732], [-4.779883592131966, 9.821984768101741], [-4.330246954760383, 9.610834865757139], [-3.980449184576684, 9.862344061721698], [-3.511898972986272, 9.900326239456216], [-2.827496303712706, 9.642460842319775], [-2.56218950032624, 8.219627793811481], [-2.983584967450326, 7.379704901555511], [-3.244370083011261, 6.2504715031135], [-2.810701463217839, 5.389051215024109], [-2.856125047202397, 4.994475816259508]]] } },
+ { "type": "Feature", "properties": { "admin": "Ivory Coast", "name": "Côte d'Ivoire", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[-2.856125047202397, 4.994475816259508], [-3.311084357100071, 4.984295559098014], [-4.008819545904941, 5.179813340674314], [-4.64991736491791, 5.168263658057084], [-5.834496222344525, 4.993700669775135], [-6.528769090185845, 4.705087795425015], [-7.518941209330434, 4.338288479017307], [-7.712159389669749, 4.364565944837721], [-7.63536821128403, 5.188159084489455], [-7.53971513511176, 5.313345241716517], [-7.570152553731686, 5.707352199725903], [-7.993692592795879, 6.126189683451541], [-8.311347622094017, 6.193033148621081], [-8.602880214868618, 6.467564195171659], [-8.385451626000572, 6.911800645368742], [-8.485445522485348, 7.395207831243068], [-8.439298468448696, 7.686042792181736], [-8.280703497744936, 7.687179673692156], [-8.221792364932197, 8.123328762235571], [-8.299048631208562, 8.316443589710302], [-8.203498907900878, 8.455453192575446], [-7.832100389019186, 8.575704250518625], [-8.079113735374348, 9.376223863152033], [-8.309616461612249, 9.789531968622439], [-8.22933712404682, 10.129020290563897], [-8.029943610048617, 10.206534939001711], [-7.89958980959237, 10.297382106970824], [-7.622759161804808, 10.147236232946792], [-6.850506557635057, 10.138993841996237], [-6.666460944027547, 10.430810655148447], [-6.493965013037267, 10.411302801958268], [-6.205222947606429, 10.524060777219132], [-6.050452032892266, 10.096360785355442], [-5.816926235365286, 10.222554633012191], [-5.404341599946973, 10.370736802609144], [-4.954653286143098, 10.152713934769732], [-4.779883592131966, 9.821984768101741], [-4.330246954760383, 9.610834865757139], [-3.980449184576684, 9.862344061721698], [-3.511898972986272, 9.900326239456216], [-2.827496303712706, 9.642460842319775], [-2.56218950032624, 8.219627793811481], [-2.983584967450326, 7.379704901555511], [-3.244370083011261, 6.2504715031135], [-2.810701463217839, 5.389051215024109], [-2.856125047202397, 4.994475816259508]]] } },
{ "type": "Feature", "properties": { "admin": "Cameroon", "name": "Cameroon", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[13.07582238124675, 2.267097072759014], [12.951333855855605, 2.321615708826939], [12.359380323952218, 2.19281220133945], [11.751665480199787, 2.326757513839993], [11.276449008843711, 2.261050930180871], [9.649158155972627, 2.283866075037735], [9.795195753629455, 3.073404445809117], [9.404366896205998, 3.734526882335202], [8.948115675501068, 3.904128933117135], [8.744923943729416, 4.352215277519959], [8.488815545290889, 4.495617377129917], [8.500287713259693, 4.771982937026847], [8.757532993208626, 5.47966583904791], [9.233162876023043, 6.444490668153334], [9.522705926154398, 6.453482367372116], [10.118276808318255, 7.038769639509879], [10.497375115611417, 7.055357774275562], [11.058787876030349, 6.644426784690593], [11.745774366918509, 6.981382961449753], [11.839308709366801, 7.397042344589434], [12.063946160539556, 7.799808457872301], [12.218872104550597, 8.305824082874322], [12.753671502339214, 8.717762762888993], [12.955467970438971, 9.417771714714702], [13.1675997249971, 9.64062632897341], [13.308676385153914, 10.160362046748926], [13.572949659894558, 10.798565985553564], [14.415378859116682, 11.572368882692071], [14.468192172918974, 11.90475169519341], [14.57717776862253, 12.085360826053501], [14.181336297266792, 12.483656927943112], [14.213530714584634, 12.802035427293344], [14.495787387762842, 12.859396267137326], [14.893385857816522, 12.219047756392582], [14.960151808337598, 11.555574042197222], [14.923564894274955, 10.891325181517471], [15.467872755605269, 9.982336737503429], [14.909353875394713, 9.99212942142273], [14.627200555081057, 9.920919297724536], [14.171466098699025, 10.021378282099928], [13.954218377344002, 9.549494940626685], [14.544466586981766, 8.965861314322266], [14.979995558337688, 8.796104234243471], [15.120865512765331, 8.382150173369423], [15.436091749745765, 7.692812404811971], [15.279460483469107, 7.421924546737968], [14.776545444404572, 6.408498033062044], [14.536560092841111, 6.22695872642069], [14.459407179429345, 5.451760565610299], [14.558935988023501, 5.03059764243153], [14.478372430080466, 4.732605495620446], [14.950953403389658, 4.21038930909492], [15.036219516671249, 3.851367295747123], [15.405395948964379, 3.335300604664339], [15.862732374747479, 3.013537298998982], [15.907380812247649, 2.557389431158612], [16.01285241055535, 2.267639675298084], [15.940918816805061, 1.727672634280295], [15.14634199388524, 1.964014797367184], [14.337812534246577, 2.22787466064949], [13.07582238124675, 2.267097072759014]]] } },
{ "type": "Feature", "properties": { "admin": "Democratic Republic of the Congo", "name": "Dem. Rep. Congo", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[30.833859897593801, 3.50916596111034], [30.773346795380036, 2.339883327642127], [31.174149204235807, 2.204465236821263], [30.852670118948048, 1.849396470543809], [30.468507521290292, 1.58380544677972], [30.086153598762703, 1.062312730306288], [29.875778842902488, 0.597379868976304], [29.819503208136634, -0.205310153813372], [29.587837762172164, -0.58740569417948], [29.579466180140876, -1.341313164885626], [29.29188683443661, -1.620055840667987], [29.254834832483336, -2.215109958508911], [29.117478875451546, -2.292211195488384], [29.02492638521678, -2.839257907730157], [29.276383904749046, -3.293907159034063], [29.339997592900342, -4.499983412294092], [29.519986606572925, -5.419978936386313], [29.41999271008816, -5.939998874539432], [29.620032179490003, -6.520015150583424], [30.199996779101692, -7.079980970898161], [30.740015496551781, -8.340007419470913], [30.34608605319081, -8.238256524288216], [29.002912225060467, -8.40703175215347], [28.734866570762495, -8.526559340044576], [28.449871046672818, -9.164918308146083], [28.673681674928922, -9.605924981324931], [28.496069777141763, -10.789883721564044], [28.372253045370421, -11.793646742401389], [28.642417433392346, -11.971568698782312], [29.341547885869087, -12.36074391037241], [29.616001417771223, -12.178894545137307], [29.699613885219485, -13.257226657771827], [28.934285922976834, -13.248958428605132], [28.52356163912102, -12.698604424696679], [28.15510867687998, -12.272480564017894], [27.38879886242378, -12.132747491100663], [27.164419793412456, -11.608748467661071], [26.55308759939961, -11.924439792532125], [25.752309604604726, -11.784965101776356], [25.418118116973197, -11.330935967659958], [24.783169793402948, -11.238693536018962], [24.314516228947948, -11.262826429899269], [24.257155389103982, -10.951992689663655], [23.912215203555714, -10.926826267137512], [23.456790805767433, -10.867863457892481], [22.837345411884733, -11.017621758674329], [22.402798292742371, -10.99307545333569], [22.155268182064304, -11.084801120653768], [22.208753289486388, -9.894796237836507], [21.87518191904234, -9.523707777548564], [21.801801385187897, -8.908706556842978], [21.949130893652036, -8.305900974158275], [21.746455926203303, -7.920084730667147], [21.728110792739695, -7.2908724910813], [20.514748162526498, -7.299605808138629], [20.601822950938292, -6.93931772219968], [20.091621534920645, -6.943090101756993], [20.037723016040214, -7.116361179231644], [19.417502475673157, -7.155428562044297], [19.166613396896107, -7.738183688999753], [19.016751743249664, -7.988245944860132], [18.464175652752683, -7.847014255406442], [18.134221632569048, -7.98767750410492], [17.472970004962232, -8.068551120641699], [17.089995965247166, -7.545688978712525], [16.860190870845198, -7.222297865429984], [16.573179965896141, -6.622644545115087], [16.326528354567042, -5.877470391466267], [13.375597364971892, -5.864241224799548], [13.02486941900696, -5.984388929878157], [12.735171339578695, -5.965682061388497], [12.322431674863507, -6.100092461779658], [12.182336866920249, -5.789930515163837], [12.436688266660866, -5.684303887559245], [12.468004184629734, -5.248361504745003], [12.631611769265788, -4.991271254092935], [12.995517205465173, -4.781103203961883], [13.258240187237044, -4.882957452009165], [13.600234816144676, -4.500138441590969], [14.144956088933295, -4.510008640158715], [14.209034864975219, -4.793092136253597], [14.582603794013179, -4.970238946150139], [15.170991652088441, -4.3435071753143], [15.753540073314749, -3.855164890156096], [16.006289503654298, -3.535132744972528], [15.972803175529149, -2.712392266453612], [16.407091912510051, -1.740927015798682], [16.86530683764212, -1.225816338713287], [17.523716261472853, -0.743830254726987], [17.638644646889983, -0.424831638189246], [17.663552687254676, -0.058083998213817], [17.826540154703245, 0.288923244626105], [17.774191928791563, 0.855658677571085], [17.89883548347958, 1.741831976728278], [18.09427575040743, 2.365721543788055], [18.39379235197114, 2.90044342692822], [18.453065219809925, 3.504385891123348], [18.542982211997778, 4.201785183118317], [18.932312452884755, 4.709506130385973], [19.467783644293146, 5.031527818212779], [20.290679152108932, 4.691677761245287], [20.927591180106273, 4.322785549329736], [21.659122755630019, 4.224341945813719], [22.405123732195531, 4.02916006104732], [22.704123569436284, 4.633050848810156], [22.841479526468103, 4.710126247573483], [23.297213982850135, 4.609693101414221], [24.41053104014625, 5.108784084489129], [24.805028924262409, 4.897246608902349], [25.128833449003274, 4.927244777847789], [25.278798455514302, 5.170408229997191], [25.650455356557465, 5.256087754737123], [26.402760857862535, 5.150874538590869], [27.044065382604703, 5.127852688004835], [27.374226108517483, 5.233944403500059], [27.979977247842807, 4.408413397637373], [28.428993768026906, 4.287154649264493], [28.696677687298795, 4.455077215996936], [29.159078403446497, 4.38926727947323], [29.715995314256013, 4.600804755060024], [29.953500197069467, 4.173699042167683], [30.833859897593801, 3.50916596111034]]] } },
{ "type": "Feature", "properties": { "admin": "Republic of Congo", "name": "Congo", "continent": "Africa" }, "geometry": { "type": "Polygon", "coordinates": [[[12.995517205465173, -4.781103203961883], [12.620759718484491, -4.438023369976135], [12.318607618873923, -4.606230157086187], [11.914963006242086, -5.037986748884789], [11.093772820691923, -3.978826592630546], [11.855121697648114, -3.42687061932105], [11.478038771214299, -2.765618991714241], [11.820963575903189, -2.514161472181982], [12.495702752338159, -2.391688327650242], [12.575284458067639, -1.948511244315134], [13.109618767965626, -2.428740329603513], [13.992407260807706, -2.470804945489099], [14.299210239324564, -1.998275648612213], [14.425455763413593, -1.333406670744971], [14.316418491277741, -0.552627455247048], [13.843320753645653, 0.038757635901149], [14.276265903386953, 1.196929836426619], [14.026668735417214, 1.395677395021153], [13.282631463278816, 1.31418366129688], [13.003113641012074, 1.830896307783319], [13.07582238124675, 2.267097072759014], [14.337812534246577, 2.22787466064949], [15.14634199388524, 1.964014797367184], [15.940918816805061, 1.727672634280295], [16.01285241055535, 2.267639675298084], [16.537058139724135, 3.198254706226278], [17.133042433346297, 3.728196519379451], [17.809900343505259, 3.560196437998569], [18.453065219809925, 3.504385891123348], [18.39379235197114, 2.90044342692822], [18.09427575040743, 2.365721543788055], [17.89883548347958, 1.741831976728278], [17.774191928791563, 0.855658677571085], [17.826540154703245, 0.288923244626105], [17.663552687254676, -0.058083998213817], [17.638644646889983, -0.424831638189246], [17.523716261472853, -0.743830254726987], [16.86530683764212, -1.225816338713287], [16.407091912510051, -1.740927015798682], [15.972803175529149, -2.712392266453612], [16.006289503654298, -3.535132744972528], [15.753540073314749, -3.855164890156096], [15.170991652088441, -4.3435071753143], [14.582603794013179, -4.970238946150139], [14.209034864975219, -4.793092136253597], [14.144956088933295, -4.510008640158715], [13.600234816144676, -4.500138441590969], [13.258240187237044, -4.882957452009165], [12.995517205465173, -4.781103203961883]]] } },
@@ -983,7 +983,7 @@ module MenuComponent {
-
+
module NavigationDrawerComponent {
$(function () {
@@ -1023,7 +1023,7 @@ module PivotChartOlap {
$(function () {
var sample = new ej.PivotChart($("#PivotChart"),{
dataSource: {
- data: "http://bi.syncfusion.com/olap/msmdpump.dll",
+ data: "http://bi.syncfusion.com/olap/msmdpump.dll",
catalog: "Adventure Works DW 2008 SE",
cube: "Adventure Works",
rows: [
@@ -1191,7 +1191,7 @@ module PivotGaugeOlap {
length: 120,
width: 7
},
- {
+ {
type: "marker",
markerType: "diamond",
distanceFromScale: 5,
@@ -1220,7 +1220,7 @@ module PivotGaugeOlap {
distanceFromScale: -5,
backgroundColor: "#fc0606",
border: { color: "#fc0606" }
- },
+ },
{
distanceFromScale: -5
}],
@@ -1238,7 +1238,7 @@ module PivotGaugeOlap {
}]
}]
});
- });
+ });
}
@@ -1312,7 +1312,7 @@ module PivotGaugeRelational {
length: 120,
width: 7
},
- {
+ {
type: "marker",
markerType: "diamond",
distanceFromScale: 5,
@@ -1341,7 +1341,7 @@ module PivotGaugeRelational {
distanceFromScale: -5,
backgroundColor: "#fc0606",
border: { color: "#fc0606" }
- },
+ },
{
distanceFromScale: -5
}],
@@ -1359,7 +1359,7 @@ module PivotGaugeRelational {
}]
}]
});
- });
+ });
}
@@ -1394,7 +1394,7 @@ module PivotGridOlap {
],
filters:[]
},
- enableGroupingBar: true,
+ enableGroupingBar: true,
pivotTableFieldListID:"PivotSchemaDesigner"
});
$("#PivotSchemaDesigner").ejPivotSchemaDesigner();
@@ -1445,7 +1445,7 @@ module PivotGridRelational {
fieldCaption: "State"
}
],
- columns:
+ columns:
[{
fieldName: "Product",
fieldCaption: "Product"
@@ -1463,10 +1463,10 @@ module PivotGridRelational {
],
filters:[]
},
- enableGroupingBar: true,
+ enableGroupingBar: true,
pivotTableFieldListID:"PivotSchemaDesigner"
});
- $("#PivotSchemaDesigner").ejPivotSchemaDesigner();
+ $("#PivotSchemaDesigner").ejPivotSchemaDesigner();
});
}
@@ -1607,7 +1607,7 @@ function redo(e: any) {
}
-
+
module RadialSliderComponent {
$(function () {
@@ -1640,7 +1640,7 @@ module rangecomponent {
fill: '#69D2E7'
}
];
- }
+ }
});
});
@@ -1692,7 +1692,7 @@ module RatingComponent {
shapeWidth: 25,
showTooltip: true
});
-
+
var sample2 = new ej.Rating($("#halfRating"),{
precision: ej.Rating.Precision.Half,
value: 3.5,
@@ -1723,7 +1723,7 @@ module RatingComponent {
shapeHeight: 25,
shapeWidth: 25,
showTooltip: true
- });
+ });
});
}
@@ -1756,7 +1756,7 @@ module RibbonComponent {
toolTip: "Pin the Ribbon"
},
applicationTab: {
- type: ej.Ribbon.ApplicationTabType.Menu, menuItemID: "ribbonmenu", menuSettings: { openOnClick: false }
+ type: ej.Ribbon.ApplicationTabType.Menu, menuItemID: "ribbonmenu", menuSettings: { openOnClick: false }
},
tabs: [{
id: "home", text: "HOME", groups: [{
@@ -1833,7 +1833,7 @@ module RibbonComponent {
width: 60,
isBig: false
}
- }]
+ }]
},
{
text: "Font", alignType: "rows", content: [{
@@ -2112,7 +2112,7 @@ module RibbonComponent {
groups: [{
id: "zoomin",
text: "Zoom In",
- toolTip: "Zoom In",
+ toolTip: "Zoom In",
buttonSettings: {
width: 58,
contentType: ej.ContentType.TextAndImage,
@@ -2123,7 +2123,7 @@ module RibbonComponent {
{
id: "zoomout",
text: "Zoom Out",
- toolTip: "Zoom Out",
+ toolTip: "Zoom Out",
buttonSettings: {
width: 70,
contentType: ej.ContentType.TextAndImage,
@@ -2134,7 +2134,7 @@ module RibbonComponent {
{
id: "fullscreen",
text: "Full Screen",
- toolTip: "Full Screen",
+ toolTip: "Full Screen",
buttonSettings: {
width: 73,
contentType: ej.ContentType.TextAndImage,
@@ -2363,7 +2363,7 @@ module RibbonComponent {
}
]
}
- ],
+ ],
create: function createControl(args) {
var ribbon = $("#defaultRibbon").data("ejRibbon");
$("#fontcolor").ejColorPicker({ value: "#FFFF00", modelType: "palette", cssClass: "e-ribbon", toolIcon: "e-fontcoloricon", select: colorHandler });
@@ -2379,7 +2379,7 @@ function colorHandler(args:any) {
-
+
module RotatorComponent {
$(function () {
@@ -2542,7 +2542,7 @@ module ScheduleComponent {
}
});
});
-}
+}
@@ -2725,9 +2725,9 @@ module piesparkline4 {
});
}
+
-
-
+
module SplitterComponent {
@@ -2762,7 +2762,7 @@ $(function () {
pdfUrl: (window).baseurl + "api/Spreadsheet/PdfExport"
},
sheets: [{ rangeSettings: [{ dataSource: (window).defaultData, startCell: "A1" }] }],
- loadComplete: () => {
+ loadComplete: () => {
var spreadsheet = $("#basicSpreadsheet").data("ejSpreadsheet"), xlFormat = spreadsheet.XLFormat;
if (!(spreadsheet).isImport) {
spreadsheet.setWidthToColumns([140, 128, 105, 100, 100, 110, 120, 120, 100]);
@@ -2786,13 +2786,13 @@ var default_data: Array = [
{ Category : "Employees", Country : "USA", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 70 },
{ Category : "Employees", Country : "USA", JobDescription : "Management", EmployeesCount : 40 },
{ Category : "Employees", Country : "USA", JobDescription : "Accounts", EmployeesCount : 60 },
-
+
{ Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 43 },
{ Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 125},
{ Category : "Employees", Country : "India", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 60 },
{ Category : "Employees", Country : "India", JobDescription : "HR Executives", EmployeesCount : 70 },
{ Category : "Employees", Country : "India", JobDescription : "Accounts", EmployeesCount : 45 },
-
+
{ Category : "Employees", Country : "Germany", JobDescription : "Sales", JobGroup : "Executive", EmployeesCount : 30 },
{ Category : "Employees", Country : "Germany", JobDescription : "Sales", JobGroup : "Analyst", EmployeesCount : 40 },
{ Category : "Employees", Country : "Germany", JobDescription : "Marketing", EmployeesCount : 50 },
@@ -2801,13 +2801,13 @@ var default_data: Array = [
{ Category : "Employees", Country : "Germany", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 27 },
{ Category : "Employees", Country : "Germany", JobDescription : "Management", EmployeesCount : 33 },
{ Category : "Employees", Country : "Germany", JobDescription : "Accounts", EmployeesCount : 55 },
-
+
{ Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 45 },
{ Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 96 },
{ Category : "Employees", Country : "UK", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 55 },
{ Category : "Employees", Country : "UK", JobDescription : "HR Executives", EmployeesCount : 60 },
{ Category : "Employees", Country : "UK", JobDescription: "Accounts", EmployeesCount: 30 },
-
+
{ Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Testers", EmployeesCount : 40 },
{ Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Windows", EmployeesCount : 65 },
{ Category : "Employees", Country : "France", JobDescription : "Technical", JobGroup : "Developers", JobRole : "Web", EmployeesCount : 27 },
@@ -2817,7 +2817,7 @@ var default_data: Array = [
module sunburstcomponent {
$(function () {
var sunburstsample = new ej.SunburstChart($("#Sunburst"), {
- valueMemberPath: "EmployeesCount",
+ valueMemberPath: "EmployeesCount",
levels: [
{groupMemberPath: "Country"},
{groupMemberPath: "JobDescription"},
@@ -2856,8 +2856,8 @@ module TabComponent {
module TagCloudComponent {
-
-
+
+
var websiteCollection = [
{ text: "Google", url: "http://www.google.com", frequency: 12 },
{ text: "All Things Digital", url: "http://allthingsd.com/", frequency: 3 },
@@ -2888,7 +2888,7 @@ module TagCloudComponent {
text: "text", url: "url", frequency: "frequency"
}
});
-
+
});
}
@@ -2928,7 +2928,7 @@ module EditorComponent {
-
+
module TileViewComponent {
$(function () {
@@ -2939,38 +2939,38 @@ module TileViewComponent {
imageUrl:'content/images/tile/windows/people_1.png'
});
var tile2 = new ej.Tile($("#tile2"), {
- imagePosition:"center",
+ imagePosition:"center",
tileSize:"small",
- imageUrl:'content/images/tile/windows/alerts.png',
-
+ imageUrl:'content/images/tile/windows/alerts.png',
+
});
var tile3 = new ej.Tile($("#tile3"), {
- imagePosition:"center",
+ imagePosition:"center",
tileSize:"small",
- imageUrl:'content/images/tile/windows/bing.png',
+ imageUrl:'content/images/tile/windows/bing.png',
});
var tile4 = new ej.Tile($("#tile4"), {
tileSize:"small",
- imageUrl:'content/images/tile/windows/camera.png',
+ imageUrl:'content/images/tile/windows/camera.png',
});
var tile5 = new ej.Tile($("#tile5"), {
- imagePosition:"center",
+ imagePosition:"center",
tileSize:"small",
- imageUrl:'content/images/tile/windows/messages.png',
+ imageUrl:'content/images/tile/windows/messages.png',
});
var tile6 = new ej.Tile($("#tile6"), {
- imagePosition:"center",
+ imagePosition:"center",
tileSize:"medium",
- imageUrl:'content/images/tile/windows/games.png',
+ imageUrl:'content/images/tile/windows/games.png',
caption:{text:"Play"}
});
- var tile7 = new ej.Tile($("#tile7"), {
+ var tile7 = new ej.Tile($("#tile7"), {
tileSize:"medium",
imageUrl:'content/images/tile/windows/map.png',
caption:{text:"Maps"}
});
var tile8 = new ej.Tile($("#tile8"), {
- imagePosition:"fill",
+ imagePosition:"fill",
tileSize:"wide",
imageUrl:'content/images/tile/windows/sports.png',
caption:{text:"Sports"}
@@ -3022,7 +3022,7 @@ module TimePickerComponent {
module ToolbarComponent {
-
+
$(function () {
var sample = new ej.Toolbar($("#editingToolbar"),{
width: "100%",
@@ -3041,7 +3041,7 @@ module ToolbarComponent {
module TooltipComponent {
-
+
$(function () {
var sample1 = new ej.Tooltip($("#link1"),{
@@ -3136,7 +3136,7 @@ module TreeGridComponent {
isResponsive: true,
});
});
-}
+}
@@ -3181,7 +3181,7 @@ module treemapcomponent {
-
+
module TreeViewComponent {
$(function () {
@@ -3198,7 +3198,7 @@ module TreeViewComponent {
module UploadboxComponent {
-
+
$(function () {
var sample = new ej.Uploadbox($("#UploadDefault"),{
saveUrl: "uploadbox/saveFiles.ashx",
@@ -3232,4 +3232,4 @@ module WaitingPopupComponent {
});
});
-}
\ No newline at end of file
+}
diff --git a/types/ej.web.all/index.d.ts b/types/ej.web.all/index.d.ts
index ca17c06c5a..0a715f52bf 100644
--- a/types/ej.web.all/index.d.ts
+++ b/types/ej.web.all/index.d.ts
@@ -7,7 +7,7 @@
/*!
* filename: ej.web.all.d.ts
-* version : 15.1.0.37
+* version : 15.1.0.41
* Copyright Syncfusion Inc. 2001 - 2017. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
@@ -16,123 +16,123 @@
*/
declare namespace ej {
const dataUtil: dataUtil;
- function isMobile(): boolean;
- function isIOS(): boolean;
- function isAndroid(): boolean;
- function isFlat(): boolean;
- function isWindows(): boolean;
- function isCssCalc(): boolean;
- function getCurrentPage(): JQuery;
- function isLowerResolution(): boolean;
- function browserInfo(): browserInfoOptions;
- function isTouchDevice(): boolean;
- function addPrefix(style: string): string;
- function animationEndEvent(): string;
- function blockDefaultActions(e: any): void;
- function buildTag(tag: string, innerHtml?: string, styles?: any, attrs?: any): JQuery;
- function cancelEvent(): string;
- function copyObject(): string;
- function createObject(nameSpace: string, value: any, initIn: any): JQuery;
- function createObject(element: any, eventEmitter: any, model: any): any;
- function setCulture(culture: string): void;
- function getObject(element: string, model: any ): T;
- function getObject(nameSpace: string, fromdata?: any): any;
- function defineClass(className: string, constructor: any, proto: any, replace: boolean): any;
- function destroyWidgets(element: any): void;
- function endEvent(): string;
- function event(type: string, data: any, eventProp: any): any;
- function getAndroidVersion(): any;
- function getAttrVal(ele: any, val: string, option: any): any;
- function getBooleanVal(ele: any, val: string, option: any): any;
- function getClearString(): string;
- function getDimension(element: any, method: string): any;
- function getFontString(fontObj: any): string;
- function getFontStyle(style: string): string;
- function getMaxZindex(): number;
- function getNameSpace(className: string): string;
- function getOffset(ele: string): any;
- function getRenderMode(): string;
- function getScrollableParents(element: any): void;
- function getTheme(): string;
- function getZindexPartial(element: any, popupEle: string): number;
- function hasRenderMode(element: string): void;
- function hasStyle(prop: string): boolean;
- function hasTheme(element: string): string;
- function hexFromRGB(color: string): string;
- function ieClearRemover(element: string): void;
- function isAndroidWebView(): string;
- function isDevice(): boolean;
- function isIOS7(): boolean;
- function isIOSWebView(): boolean;
- function isLowerAndroid(): boolean;
- function isNullOrUndefined(value: any): boolean;
- function isPlainObject(): JQuery;
- function isPortrait(): any;
- function isTablet(): boolean;
- function isWindowsWebView(): string;
- function listenEvents(selectors: any, eventTypes: any, handlers: any, remove?: any, pluginObj?: any, disableMouse?: boolean): void;
- function listenTouchEvent(selectors: any, eventTypes: any, handlers: any, remove?: any, pluginObj?: any, disableMouse?: boolean): void;
- function logBase(val: string, base: string): number;
- function measureText(text: string, maxwidth: number, font: string): string;
- function moveEvent(): string;
- function print(element: string, printWindow: any): void;
- function proxy(fn: any, context?: string, arg?: string): any;
- function round(value: string, div: string, up: string): any;
- function sendAjaxRequest(ajaxOptions: any): void;
- function setCaretToPos(nput: string, pos1: string, pos2: string): void;
- function setRenderMode(element: string): void;
- function setTheme(): any;
- function startEvent(): string;
- function tapEvent(): string;
- function tapHoldEvent(): string;
- function throwError(): any;
- function transitionEndEvent(): any;
- function userAgent(): boolean;
- function widget(pluginName: string, className: string, proto: any): any;
- function avg(json: any, filedName: string): any;
- function getGuid(prefix: string): number;
- function group(jsonArray: any, field: string, agg: string, level: number, groupDs: string): any;
- function isJson(jsonData: string): string;
- function max(jsonArray: any, fieldName?: string, comparer?: string): any;
- function min(jsonArray: any, fieldName: string, comparer: string): any;
- function merge(first: string, second: string): any;
- function mergeshort(jsonArray: any, fieldName: string, comparer: string): any;
- function parseJson(jsonText: string): string;
- function parseTable(table: number, headerOption: string, headerRowIndex: string): any;
- function select(jsonArray: any, fields: string): any;
- function setTransition(): boolean;
- function sum(json: string, fieldName: string): string;
- function swap(array: any, x: string, y: string): any;
- const cssUA: string;
- const serverTimezoneOffset: number;
- const transform: string;
- const transformOrigin: string;
- const transformStyle: string;
- const transition: string;
- const transitionDelay: string;
- const transitionDuration: string;
- const transitionProperty: string;
- const transitionTimingFunction: string;
+ function isMobile(): boolean;
+ function isIOS(): boolean;
+ function isAndroid(): boolean;
+ function isFlat(): boolean;
+ function isWindows(): boolean;
+ function isCssCalc(): boolean;
+ function getCurrentPage(): JQuery;
+ function isLowerResolution(): boolean;
+ function browserInfo(): browserInfoOptions;
+ function isTouchDevice(): boolean;
+ function addPrefix(style: string): string;
+ function animationEndEvent(): string;
+ function blockDefaultActions(e: any): void;
+ function buildTag(tag: string, innerHtml?: string, styles?: any, attrs?: any): JQuery;
+ function cancelEvent(): string;
+ function copyObject(): string;
+ function createObject(nameSpace: string, value: any, initIn: any): JQuery;
+ function createObject(element: any, eventEmitter: any, model: any): any;
+ function setCulture(culture: string): void;
+ function getObject(element: string, model: any): T;
+ function getObject(nameSpace: string, fromdata?: any): any;
+ function defineClass(className: string, constructor: any, proto: any, replace: boolean): any;
+ function destroyWidgets(element: any): void;
+ function endEvent(): string;
+ function event(type: string, data: any, eventProp: any): any;
+ function getAndroidVersion(): any;
+ function getAttrVal(ele: any, val: string, option: any): any;
+ function getBooleanVal(ele: any, val: string, option: any): any;
+ function getClearString(): string;
+ function getDimension(element: any, method: string): any;
+ function getFontString(fontObj: any): string;
+ function getFontStyle(style: string): string;
+ function getMaxZindex(): number;
+ function getNameSpace(className: string): string;
+ function getOffset(ele: string): any;
+ function getRenderMode(): string;
+ function getScrollableParents(element: any): void;
+ function getTheme(): string;
+ function getZindexPartial(element: any, popupEle: string): number;
+ function hasRenderMode(element: string): void;
+ function hasStyle(prop: string): boolean;
+ function hasTheme(element: string): string;
+ function hexFromRGB(color: string): string;
+ function ieClearRemover(element: string): void;
+ function isAndroidWebView(): string;
+ function isDevice(): boolean;
+ function isIOS7(): boolean;
+ function isIOSWebView(): boolean;
+ function isLowerAndroid(): boolean;
+ function isNullOrUndefined(value: any): boolean;
+ function isPlainObject(): JQuery;
+ function isPortrait(): any;
+ function isTablet(): boolean;
+ function isWindowsWebView(): string;
+ function listenEvents(selectors: any, eventTypes: any, handlers: any, remove?: any, pluginObj?: any, disableMouse?: boolean): void;
+ function listenTouchEvent(selectors: any, eventTypes: any, handlers: any, remove?: any, pluginObj?: any, disableMouse?: boolean): void;
+ function logBase(val: string, base: string): number;
+ function measureText(text: string, maxwidth: number, font: string): string;
+ function moveEvent(): string;
+ function print(element: string, printWindow: any): void;
+ function proxy(fn: any, context?: string, arg?: string): any;
+ function round(value: string, div: string, up: string): any;
+ function sendAjaxRequest(ajaxOptions: any): void;
+ function setCaretToPos(nput: string, pos1: string, pos2: string): void;
+ function setRenderMode(element: string): void;
+ function setTheme(): any;
+ function startEvent(): string;
+ function tapEvent(): string;
+ function tapHoldEvent(): string;
+ function throwError(): any;
+ function transitionEndEvent(): any;
+ function userAgent(): boolean;
+ function widget(pluginName: string, className: string, proto: any): any;
+ function avg(json: any, filedName: string): any;
+ function getGuid(prefix: string): number;
+ function group(jsonArray: any, field: string, agg: string, level: number, groupDs: string): any;
+ function isJson(jsonData: string): string;
+ function max(jsonArray: any, fieldName?: string, comparer?: string): any;
+ function min(jsonArray: any, fieldName: string, comparer: string): any;
+ function merge(first: string, second: string): any;
+ function mergeshort(jsonArray: any, fieldName: string, comparer: string): any;
+ function parseJson(jsonText: string): string;
+ function parseTable(table: number, headerOption: string, headerRowIndex: string): any;
+ function select(jsonArray: any, fields: string): any;
+ function setTransition(): boolean;
+ function sum(json: string, fieldName: string): string;
+ function swap(array: any, x: string, y: string): any;
+ const cssUA: string;
+ const serverTimezoneOffset: number;
+ const transform: string;
+ const transformOrigin: string;
+ const transformStyle: string;
+ const transition: string;
+ const transitionDelay: string;
+ const transitionDuration: string;
+ const transitionProperty: string;
+ const transitionTimingFunction: string;
const template: any;
const util: {
- valueFunction(val: string): any;
- };
- export namespace device {
- function isAndroid(): boolean;
- function isIOS(): boolean;
- function isFlat(): boolean;
- function isIOS7(): boolean;
- function isWindows(): boolean;
- }
- export namespace widget {
- const autoInit: boolean;
- const registeredInstances: any[];
- const registeredWidgets: any[];
- function register(pluginName: string, className: string, prototype: any): void;
- function destroyAll(elements: Element): void;
- function init(element: Element): void;
- function registerInstance(element: Element, pluginName: string, className: string, prototype: any): void;
- }
+ valueFunction(val: string): any;
+ };
+ export namespace device {
+ function isAndroid(): boolean;
+ function isIOS(): boolean;
+ function isFlat(): boolean;
+ function isIOS7(): boolean;
+ function isWindows(): boolean;
+ }
+ export namespace widget {
+ const autoInit: boolean;
+ const registeredInstances: any[];
+ const registeredWidgets: any[];
+ function register(pluginName: string, className: string, prototype: any): void;
+ function destroyAll(elements: Element): void;
+ function init(element: Element): void;
+ function registerInstance(element: Element, pluginName: string, className: string, prototype: any): void;
+ }
interface browserInfoOptions {
name: string;
version: string;
@@ -140,302 +140,302 @@ declare namespace ej {
isMSPointerEnabled: boolean;
}
class WidgetBase {
- destroy(): void;
- element: JQuery;
- setModel(options: any, forceSet?: boolean): any;
- option(prop?: any, value?: any, forceSet?: boolean): any;
+ destroy(): void;
+ element: JQuery;
+ setModel(options: any, forceSet?: boolean): any;
+ option(prop?: any, value?: any, forceSet?: boolean): any;
_trigger(eventName?: string, eventProp?: any): any;
- _on(element: JQuery, eventType?: string, handler?: (eventObject: JQueryEventObject) => any): any;
- _on(element: JQuery, eventType ?: string, selector ?: string, handler ?: (eventObject: JQueryEventObject) => any): any;
- _off(element: JQuery, eventName: string, handler ?: (eventObject: JQueryEventObject) => any): any;
- _off(element: JQuery, eventType ?: string, selector ?: string, handler ?: (eventObject: JQueryEventObject) => any): any;
- persistState(): void;
- restoreState(silent: boolean): void;
- }
+ _on(element: JQuery, eventType?: string, handler?: (eventObject: JQueryEventObject) => any): any;
+ _on(element: JQuery, eventType?: string, selector?: string, handler?: (eventObject: JQueryEventObject) => any): any;
+ _off(element: JQuery, eventName: string, handler?: (eventObject: JQueryEventObject) => any): any;
+ _off(element: JQuery, eventType?: string, selector?: string, handler?: (eventObject: JQueryEventObject) => any): any;
+ persistState(): void;
+ restoreState(silent: boolean): void;
+ }
- class Widget extends WidgetBase {
- constructor(pluginName: string, className: string, proto: any);
- static fn: Widget;
- static extend(widget: Widget): any;
- register(pluginName: string, className: string, prototype: any): void;
- destroyAll(elements: Element): void;
- model: any;
- }
+ class Widget extends WidgetBase {
+ constructor(pluginName: string, className: string, proto: any);
+ static fn: Widget;
+ static extend(widget: Widget): any;
+ register(pluginName: string, className: string, prototype: any): void;
+ destroyAll(elements: Element): void;
+ model: any;
+ }
- interface BaseEvent {
- cancel: boolean;
- type: string;
- }
- class DataManager {
- constructor(dataSource?: any, query?: ej.Query, adaptor?: any);
- setDefaultQuery(query: ej.Query): void;
- executeQuery(query?: ej.Query, done?: any, fail?: any, always?: any): JQueryPromise;
- executeLocal(query?: ej.Query): ej.DataManager;
- saveChanges(changes?: Changes, key?: string, tableName?: string): JQueryDeferred;
- insert(data: any, tableName?: string): JQueryPromise;
- remove(keyField: string, value: any, tableName?: string): any;
- update(keyField: string, value: any, tableName?: string): any;
- }
+ interface BaseEvent {
+ cancel: boolean;
+ type: string;
+ }
+ class DataManager {
+ constructor(dataSource?: any, query?: ej.Query, adaptor?: any);
+ setDefaultQuery(query: ej.Query): void;
+ executeQuery(query?: ej.Query, done?: any, fail?: any, always?: any): JQueryPromise;
+ executeLocal(query?: ej.Query): ej.DataManager;
+ saveChanges(changes?: Changes, key?: string, tableName?: string): JQueryDeferred;
+ insert(data: any, tableName?: string): JQueryPromise;
+ remove(keyField: string, value: any, tableName?: string): any;
+ update(keyField: string, value: any, tableName?: string): any;
+ }
- class Query {
- constructor();
- static fn: Query;
- static extend(prototype: any): Query;
- key(field: string): ej.Query;
- using(dataManager: ej.DataManager): ej.Query;
- execute(dataManager: ej.DataManager, done: any, fail?: string, always?: string): any;
- executeLocal(dataManager: ej.DataManager): ej.DataManager;
- clone(): ej.Query;
- from(tableName: any): ej.Query;
- addParams(key: string, value: string): ej.Query;
- expand(tables: any): ej.Query;
- where(fieldName: string, operator: ej.FilterOperators, value: any, ignoreCase?: boolean): ej.Query;
+ class Query {
+ constructor();
+ static fn: Query;
+ static extend(prototype: any): Query;
+ key(field: string): ej.Query;
+ using(dataManager: ej.DataManager): ej.Query;
+ execute(dataManager: ej.DataManager, done: any, fail?: string, always?: string): any;
+ executeLocal(dataManager: ej.DataManager): ej.DataManager;
+ clone(): ej.Query;
+ from(tableName: any): ej.Query;
+ addParams(key: string, value: string): ej.Query;
+ expand(tables: any): ej.Query;
+ where(fieldName: string, operator: ej.FilterOperators, value: any, ignoreCase?: boolean): ej.Query;
where(predicate: ej.Predicate): ej.Query;
- search(searchKey: any, fieldNames?: any, operator?: string, ignoreCase?: boolean): ej.Query;
- sortBy(fieldName: string, comparer?: ej.SortOrder, isFromGroup?: boolean): ej.Query;
- sortByDesc(fieldName: string): ej.Query;
- group(fieldName: string): ej.Query;
- page(pageIndex: number, pageSize: number): ej.Query;
- take(nos: number): ej.Query;
- skip(nos: number): ej.Query;
- select(fieldNames: any): ej.Query;
- hierarchy(query: ej.Query, selectorFn: any): ej.Query;
- foreignKey(key: string): ej.Query;
- requiresCount(): ej.Query;
- range(start: number, end: number): ej.Query;
- }
+ search(searchKey: any, fieldNames?: any, operator?: string, ignoreCase?: boolean): ej.Query;
+ sortBy(fieldName: string, comparer?: ej.SortOrder, isFromGroup?: boolean): ej.Query;
+ sortByDesc(fieldName: string): ej.Query;
+ group(fieldName: string): ej.Query;
+ page(pageIndex: number, pageSize: number): ej.Query;
+ take(nos: number): ej.Query;
+ skip(nos: number): ej.Query;
+ select(fieldNames: any): ej.Query;
+ hierarchy(query: ej.Query, selectorFn: any): ej.Query;
+ foreignKey(key: string): ej.Query;
+ requiresCount(): ej.Query;
+ range(start: number, end: number): ej.Query;
+ }
- class Adaptor {
- constructor(ds: any);
- pvt: any;
- type: ej.Adaptor;
- options: AdaptorOptions;
- extend(overrides: any): ej.Adaptor;
- processQuery(dm: ej.DataManager, query: ej.Query): any;
- processResponse(data: any, ds: any, query: ej.Query, xhr: JQueryXHR, request?: any, changes?: Changes): any;
- convertToQueryString(req: any, query: ej.Query, dm: ej.DataManager): JQueryParam;
- }
+ class Adaptor {
+ constructor(ds: any);
+ pvt: any;
+ type: ej.Adaptor;
+ options: AdaptorOptions;
+ extend(overrides: any): ej.Adaptor;
+ processQuery(dm: ej.DataManager, query: ej.Query): any;
+ processResponse(data: any, ds: any, query: ej.Query, xhr: JQueryXHR, request?: any, changes?: Changes): any;
+ convertToQueryString(req: any, query: ej.Query, dm: ej.DataManager): JQueryParam;
+ }
- interface AdaptorOptions {
- from?: string;
- requestType?: string;
- sortBy?: string;
- select?: string;
- skip?: string;
- group?: string;
- take?: string;
- search?: string;
- count?: string;
- where?: string;
- aggregates?: string;
- }
+ interface AdaptorOptions {
+ from?: string;
+ requestType?: string;
+ sortBy?: string;
+ select?: string;
+ skip?: string;
+ group?: string;
+ take?: string;
+ search?: string;
+ count?: string;
+ where?: string;
+ aggregates?: string;
+ }
- class UrlAdaptor extends ej.Adaptor {
- constructor();
- processQuery(dm: ej.DataManager, query: ej.Query, hierarchyFilters?: any): {
- type: string; url: string; ejPvtData: any; contentType?: string; data?: any;
- }
- convertToQueryString(req: any, query: ej.Query, dm: ej.DataManager): JQueryParam;
- processResponse(data: any, ds: any, query: ej.Query, xhr: JQueryXHR, request?: any, changes?: Changes): any;
- onGroup(e: any): void;
- batchRequest(dm: ej.DataManager, changes: Changes, e: any): void;
- beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
- insert(dm: ej.DataManager, data: any, tableName: string): { url: string; data: any };
- remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data?: any };
- update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data: any };
- getFiltersFrom(data: any, query: ej.Query): ej.Predicate;
- }
+ class UrlAdaptor extends ej.Adaptor {
+ constructor();
+ processQuery(dm: ej.DataManager, query: ej.Query, hierarchyFilters?: any): {
+ type: string; url: string; ejPvtData: any; contentType?: string; data?: any;
+ };
+ convertToQueryString(req: any, query: ej.Query, dm: ej.DataManager): JQueryParam;
+ processResponse(data: any, ds: any, query: ej.Query, xhr: JQueryXHR, request?: any, changes?: Changes): any;
+ onGroup(e: any): void;
+ batchRequest(dm: ej.DataManager, changes: Changes, e: any): void;
+ beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
+ insert(dm: ej.DataManager, data: any, tableName: string): { url: string; data: any };
+ remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data?: any };
+ update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data: any };
+ getFiltersFrom(data: any, query: ej.Query): ej.Predicate;
+ }
- class ODataAdaptor extends ej.UrlAdaptor {
- constructor();
- options: UrlAdaptorOptions;
- onEachWhere(filter: any, requiresCast: boolean): any;
- onPredicate(pred: ej.Predicate, query: ej.Query, requiresCast: boolean): string;
- onComplexPredicate(pred: ej.Predicate, requiresCast: boolean): string;
- onWhere(filters: string[]): string;
- onEachSearch(e: any): void;
- onSearch(e: any): string;
- onEachSort(e: any): string;
- onSortBy(e: any): string;
- onGroup(e: any): string;
- onSelect(e: any): string;
- onCount(e: any): string;
- beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
- processResponse(data: any, ds: any, query: ej.Query, xhr: any, request: any, changes: Changes): {
- result: any; count: number
- };
- convertToQueryString(req: any, query: ej.Query, dm: ej.DataManager): JQueryParam;
- insert(dm: ej.DataManager, data: any, tableName: string): { url: string; data: any; }
- remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): { url: string; type: string; }
- update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { url: string; type: string; data: any; accept: string; }
- batchRequest(dm: ej.DataManager, changes: Changes, e: any): { url: string; type: string; data: any; contentType: string; }
- generateDeleteRequest(arr: any[], e: any): string;
- generateInsertRequest(arr: any[], e: any): string;
- generateUpdateRequest(arr: any[], e: any): string;
- }
- interface UrlAdaptorOptions {
- requestType?: string;
- accept?: string;
- multipartAccept?: string;
- sortBy?: string;
- select?: string;
- skip?: string;
- take?: string;
- count?: string;
- where?: string;
- expand?: string;
- batch?: string;
- changeSet?: string;
- batchPre?: string;
- contentId?: string;
- batchContent?: string;
- changeSetContent?: string;
- batchChangeSetContentType?: string;
- }
+ class ODataAdaptor extends ej.UrlAdaptor {
+ constructor();
+ options: UrlAdaptorOptions;
+ onEachWhere(filter: any, requiresCast: boolean): any;
+ onPredicate(pred: ej.Predicate, query: ej.Query, requiresCast: boolean): string;
+ onComplexPredicate(pred: ej.Predicate, requiresCast: boolean): string;
+ onWhere(filters: string[]): string;
+ onEachSearch(e: any): void;
+ onSearch(e: any): string;
+ onEachSort(e: any): string;
+ onSortBy(e: any): string;
+ onGroup(e: any): string;
+ onSelect(e: any): string;
+ onCount(e: any): string;
+ beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
+ processResponse(data: any, ds: any, query: ej.Query, xhr: any, request: any, changes: Changes): {
+ result: any; count: number
+ };
+ convertToQueryString(req: any, query: ej.Query, dm: ej.DataManager): JQueryParam;
+ insert(dm: ej.DataManager, data: any, tableName: string): { url: string; data: any; };
+ remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): { url: string; type: string; };
+ update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { url: string; type: string; data: any; accept: string; };
+ batchRequest(dm: ej.DataManager, changes: Changes, e: any): { url: string; type: string; data: any; contentType: string; };
+ generateDeleteRequest(arr: any[], e: any): string;
+ generateInsertRequest(arr: any[], e: any): string;
+ generateUpdateRequest(arr: any[], e: any): string;
+ }
+ interface UrlAdaptorOptions {
+ requestType?: string;
+ accept?: string;
+ multipartAccept?: string;
+ sortBy?: string;
+ select?: string;
+ skip?: string;
+ take?: string;
+ count?: string;
+ where?: string;
+ expand?: string;
+ batch?: string;
+ changeSet?: string;
+ batchPre?: string;
+ contentId?: string;
+ batchContent?: string;
+ changeSetContent?: string;
+ batchChangeSetContentType?: string;
+ }
class WebApiAdaptor extends ej.ODataAdaptor {
- constructor();
- insert(dm: ej.DataManager, data: any, tableName?: string): { url: string; type: string; data: any; }
- remove(dm: ej.DataManager, value: any, keyField?: string, tableName?: string): { url: string; type: string; data: any; }
- update(dm: ej.DataManager, value: any, keyField?: string, tableName?: string): { url: string; type: string; data: any; accept: string; }
- processResponse(data: any, ds: any, query: ej.Query, xhr: any, request: any, changes: Changes): {
- result: any; count: number
- };
- }
- class ODataV4Adaptor extends ej.ODataAdaptor {
- constructor();
- options: ODataAdaptorOptions;
- onCount(e: any): string;
- onEachSearch(e: any): void;
- onSearch(e: any): string;
- beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
- processResponse(data: any, ds: any, query: ej.Query, xhr: any, request: any, changes: Changes): {
- result: any; count: number
- };
- }
- interface ODataAdaptorOptions {
- requestType?: string;
- accept?: string;
- multipartAccept?: string;
- sortBy?: string;
- select?: string;
- skip?: string;
- take?: string;
- count?: string;
- search?: string;
- where?: string;
- expand?: string;
- batch?: string;
- changeSet?: string;
- batchPre?: string;
- contentId?: string;
- batchContent?: string;
- changeSetContent?: string;
- batchChangeSetContentType?: string;
- }
+ constructor();
+ insert(dm: ej.DataManager, data: any, tableName?: string): { url: string; type: string; data: any; };
+ remove(dm: ej.DataManager, value: any, keyField?: string, tableName?: string): { url: string; type: string; data: any; };
+ update(dm: ej.DataManager, value: any, keyField?: string, tableName?: string): { url: string; type: string; data: any; accept: string; };
+ processResponse(data: any, ds: any, query: ej.Query, xhr: any, request: any, changes: Changes): {
+ result: any; count: number
+ };
+ }
+ class ODataV4Adaptor extends ej.ODataAdaptor {
+ constructor();
+ options: ODataAdaptorOptions;
+ onCount(e: any): string;
+ onEachSearch(e: any): void;
+ onSearch(e: any): string;
+ beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
+ processResponse(data: any, ds: any, query: ej.Query, xhr: any, request: any, changes: Changes): {
+ result: any; count: number
+ };
+ }
+ interface ODataAdaptorOptions {
+ requestType?: string;
+ accept?: string;
+ multipartAccept?: string;
+ sortBy?: string;
+ select?: string;
+ skip?: string;
+ take?: string;
+ count?: string;
+ search?: string;
+ where?: string;
+ expand?: string;
+ batch?: string;
+ changeSet?: string;
+ batchPre?: string;
+ contentId?: string;
+ batchContent?: string;
+ changeSetContent?: string;
+ batchChangeSetContentType?: string;
+ }
- class JsonAdaptor extends ej.Adaptor {
- constructor();
- processQuery(ds: any, query: ej.Query): string;
- batchRequest(dm: ej.DataManager, changes: Changes, e: any): Changes;
- onWhere(ds: any, e: any): any;
- onSearch(ds: any, e: any): any
- onSortBy(ds: any, e: any, query: ej.Query): any;
- onGroup(ds: any, e: any, query: ej.Query): any;
- onPage(ds: any, e: any, query: ej.Query): any;
- onRange(ds: any, e: any): any;
- onTake(ds: any, e: any): any;
- onSkip(ds: any, e: any): any;
- onSelect(ds: any, e: any): any;
- insert(dm: ej.DataManager, data: any): any;
- remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): any;
- update(dm: ej.DataManager, keyField: string, value: any, tableName: string): any;
- }
+ class JsonAdaptor extends ej.Adaptor {
+ constructor();
+ processQuery(ds: any, query: ej.Query): string;
+ batchRequest(dm: ej.DataManager, changes: Changes, e: any): Changes;
+ onWhere(ds: any, e: any): any;
+ onSearch(ds: any, e: any): any;
+ onSortBy(ds: any, e: any, query: ej.Query): any;
+ onGroup(ds: any, e: any, query: ej.Query): any;
+ onPage(ds: any, e: any, query: ej.Query): any;
+ onRange(ds: any, e: any): any;
+ onTake(ds: any, e: any): any;
+ onSkip(ds: any, e: any): any;
+ onSelect(ds: any, e: any): any;
+ insert(dm: ej.DataManager, data: any): any;
+ remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): any;
+ update(dm: ej.DataManager, keyField: string, value: any, tableName: string): any;
+ }
class remoteSaveAdaptor extends ej.UrlAdaptor {
- constructor();
- batchRequest(dm: ej.DataManager, changes: Changes, e: any): void;
- beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
- insert(dm: ej.DataManager, data: any, tableName: string): { url: string; data: any };
- remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data?: any };
- update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data: any };
- }
- class TableModel {
- constructor(name: string, jsonArray: any[], dataManager: ej.DataManager, modelComputed: any);
- on(eventName: string, handler: any): void;
- off(eventName: string, handler: any): void;
- setDataManager(dataManager: DataManager): void;
- saveChanges(): void;
- rejectChanges(): void;
- insert(json: any): void;
- update(value: any): void;
- remove(key: string): void;
- isDirty(): boolean;
- getChanges(): Changes;
- toArray(): any[];
- setDirty(dirty: any, model: any): void;
- get(index: number): void;
- length(): number;
- bindTo(element: any): void;
- }
- class Model {
- constructor(json: any, table: string, name: string);
- formElements: string[];
- computes(value: any): void;
- on(eventName: string, handler: any): void;
- off(eventName: string, handler: any): void;
- set(field: string, value: any): void;
- get(field: string): any;
- revert(suspendEvent: any): void;
- save(dm: ej.DataManager, key: string): void;
- markCommit(): void;
- markDelete(): void;
- changeState(state: boolean, args: any): void;
- properties(): any;
- bindTo(element: any): void;
- unbind(element: any): void;
- }
- interface Changes {
- changed?: any[];
- added?: any[];
- deleted?: any[];
- }
- class Predicate {
- constructor();
- constructor(field: string, operator: ej.FilterOperators, value: any, ignoreCase: boolean);
- and(field: string, operator: any, value: any, ignoreCase: boolean): ej.Predicate;
- or(field: string, operator: any, value: any, ignoreCase: boolean): ej.Predicate;
+ constructor();
+ batchRequest(dm: ej.DataManager, changes: Changes, e: any): void;
+ beforeSend(dm: ej.DataManager, request: any, settings?: any): void;
+ insert(dm: ej.DataManager, data: any, tableName: string): { url: string; data: any };
+ remove(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data?: any };
+ update(dm: ej.DataManager, keyField: string, value: any, tableName: string): { type: string; url: string; data: any };
+ }
+ class TableModel {
+ constructor(name: string, jsonArray: any[], dataManager: ej.DataManager, modelComputed: any);
+ on(eventName: string, handler: any): void;
+ off(eventName: string, handler: any): void;
+ setDataManager(dataManager: DataManager): void;
+ saveChanges(): void;
+ rejectChanges(): void;
+ insert(json: any): void;
+ update(value: any): void;
+ remove(key: string): void;
+ isDirty(): boolean;
+ getChanges(): Changes;
+ toArray(): any[];
+ setDirty(dirty: any, model: any): void;
+ get(index: number): void;
+ length(): number;
+ bindTo(element: any): void;
+ }
+ class Model {
+ constructor(json: any, table: string, name: string);
+ formElements: string[];
+ computes(value: any): void;
+ on(eventName: string, handler: any): void;
+ off(eventName: string, handler: any): void;
+ set(field: string, value: any): void;
+ get(field: string): any;
+ revert(suspendEvent: any): void;
+ save(dm: ej.DataManager, key: string): void;
+ markCommit(): void;
+ markDelete(): void;
+ changeState(state: boolean, args: any): void;
+ properties(): any;
+ bindTo(element: any): void;
+ unbind(element: any): void;
+ }
+ interface Changes {
+ changed?: any[];
+ added?: any[];
+ deleted?: any[];
+ }
+ class Predicate {
+ constructor();
+ constructor(field: string, operator: ej.FilterOperators, value: any, ignoreCase: boolean);
+ and(field: string, operator: any, value: any, ignoreCase: boolean): ej.Predicate;
+ or(field: string, operator: any, value: any, ignoreCase: boolean): ej.Predicate;
or(predicate: any[]): any;
- validate(record: any): boolean;
- toJSON(): {
- isComplex: boolean;
- field: string;
- operator: string;
- value: any;
- ignoreCase: boolean;
- condition: string;
- predicates: any;
- };
- }
- interface dataUtil {
- swap(array: any[], x: number, y: number): void;
- mergeSort(jsonArray: any[], fieldName?: string, comparer?: any): any[];
- max(jsonArray: any[], fieldName?: string, comparer?: string): any[];
- min(jsonArray: any[], fieldName: string, comparer: string): any[];
- distinct(jsonArray: any[], fieldName?: string, requiresCompleteRecord?: any): any[];
- sum(json: any, fieldName: string): number;
- avg(json: any, fieldName: string): number;
- select(jsonArray: any[], fieldName: string, fields: string): any[];
- group(jsonArray: any[], field: string, /* internal */ level: number): any[];
- parseTable(table: string, headerOption: ej.headerOption, headerRowIndex: number): any;
- }
- interface AjaxSettings {
- type?: string;
- cache: boolean;
- data?: any;
- dataType?: string;
- contentType?: any;
- async?: boolean;
- }
+ validate(record: any): boolean;
+ toJSON(): {
+ isComplex: boolean;
+ field: string;
+ operator: string;
+ value: any;
+ ignoreCase: boolean;
+ condition: string;
+ predicates: any;
+ };
+ }
+ interface dataUtil {
+ swap(array: any[], x: number, y: number): void;
+ mergeSort(jsonArray: any[], fieldName?: string, comparer?: any): any[];
+ max(jsonArray: any[], fieldName?: string, comparer?: string): any[];
+ min(jsonArray: any[], fieldName: string, comparer: string): any[];
+ distinct(jsonArray: any[], fieldName?: string, requiresCompleteRecord?: any): any[];
+ sum(json: any, fieldName: string): number;
+ avg(json: any, fieldName: string): number;
+ select(jsonArray: any[], fieldName: string, fields: string): any[];
+ group(jsonArray: any[], field: string, /* internal */ level: number): any[];
+ parseTable(table: string, headerOption: ej.headerOption, headerRowIndex: number): any;
+ }
+ interface AjaxSettings {
+ type?: string;
+ cache: boolean;
+ data?: any;
+ dataType?: string;
+ contentType?: any;
+ async?: boolean;
+ }
enum FilterOperators {
contains,
endsWith,
@@ -492,7 +492,7 @@ declare namespace ej {
EndsWith,
LessThan,
GreaterThan,
- LessThanOrEqual ,
+ LessThanOrEqual,
GreaterThanOrEqual,
Equal,
NotEqual
@@ -510,64692 +510,64779 @@ declare namespace ej {
Ascending,
Descending
}
-class Draggable extends ej.Widget {
- static fn: Draggable;
- constructor(element: JQuery | Element, options?: Draggable.Model);
- static Locale: any;
- model: Draggable.Model;
- defaults: Draggable.Model;
+ class Draggable extends ej.Widget {
+ static fn: Draggable;
+ constructor(element: JQuery | Element, options?: Draggable.Model);
+ static Locale: any;
+ model: Draggable.Model;
+ defaults: Draggable.Model;
- /** destroy in the draggable.
- * @returns {void}
- */
- _destroy(): void;
-}
-export namespace Draggable {
+ /** destroy in the draggable.
+ * @returns {void}
+ */
+ _destroy(): void;
+ }
+ export namespace Draggable {
-export interface Model {
-
- /** If clone is specified.
- * @Default {false}
- */
- clone?: boolean;
-
- /** Sets the offset of the dragging helper relative to the mouse cursor.
- * @Default {{ top: -1, left: -2 }}
- */
- cursorAt?: any;
+ export interface Model {
+
+ /** If clone is specified.
+ * @Default {false}
+ */
+ clone?: boolean;
+
+ /** Sets the offset of the dragging helper relative to the mouse cursor.
+ * @Default {{ top: -1, left: -2 }}
+ */
+ cursorAt?: any;
- /** Distance in pixels after mousedown the mouse must move before dragging should start. This option can be used to prevent unwanted drags when clicking on an element.
- * @Default {1}
- */
- distance?: number;
+ /** Distance in pixels after mousedown the mouse must move before dragging should start. This option can be used to prevent unwanted drags when clicking on an element.
+ * @Default {1}
+ */
+ distance?: number;
- /** The drag area is used to restrict the dragging element bounds.
- * @Default {false}
- */
- dragArea?: boolean;
-
- /** If specified, restricts drag start click to the specified element(s).
- * @Default {null}
- */
- handle?: string;
+ /** The drag area is used to restrict the dragging element bounds.
+ * @Default {false}
+ */
+ dragArea?: boolean;
+
+ /** If specified, restricts drag start click to the specified element(s).
+ * @Default {null}
+ */
+ handle?: string;
- /** Used to group sets of draggable and droppable items, in addition to droppable's accept option. A draggable with the same scope value as a droppable will be accepted by the droppable.
- * @Default {'default'}
- */
- scope?: string;
+ /** Used to group sets of draggable and droppable items, in addition to droppable's accept option. A draggable with the same scope value as a droppable will be accepted by the droppable.
+ * @Default {'default'}
+ */
+ scope?: string;
- /** This event is triggered when dragging element is destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ /** This event is triggered when dragging element is destroyed. */
+ destroy?(e: DestroyEventArgs): void;
- /** This event is triggered when the mouse is moved during the dragging. */
- drag?(e: DragEventArgs): void;
+ /** This event is triggered when the mouse is moved during the dragging. */
+ drag?(e: DragEventArgs): void;
- /** Supply a callback function to handle the drag start event as an init option. */
- dragStart?(e: DragStartEventArgs): void;
+ /** Supply a callback function to handle the drag start event as an init option. */
+ dragStart?(e: DragStartEventArgs): void;
- /** This event is triggered when the mouse is moved during the dragging. */
- dragStop?(e: DragStopEventArgs): void;
+ /** This event is triggered when the mouse is moved during the dragging. */
+ dragStop?(e: DragStopEventArgs): void;
- /** This event is triggered when dragged. */
- helper?(e: HelperEventArgs): void;
-}
-
-export interface DestroyEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the autocomplete model
- */
- model?: ej.Draggable.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface DragEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the draggable model
- */
- model?: ej.Draggable.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the event model values
- */
- event?: any;
-
- /** returns the exact mouse down target element
- */
- target?: any;
-}
-
-export interface DragStartEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** This event is triggered when dragged. */
+ helper?(e: HelperEventArgs): void;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the autocomplete model
+ */
+ model?: ej.Draggable.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface DragEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the draggable model
+ */
+ model?: ej.Draggable.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the event model values
+ */
+ event?: any;
+
+ /** returns the exact mouse down target element
+ */
+ target?: any;
+ }
+
+ export interface DragStartEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the draggable model
- */
- model?: ej.Draggable.Model;
+ /** returns the draggable model
+ */
+ model?: ej.Draggable.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the event model values
- */
- event?: any;
+ /** returns the event model values
+ */
+ event?: any;
- /** returns the exact mouse down target element
- */
- target?: any;
-}
+ /** returns the exact mouse down target element
+ */
+ target?: any;
+ }
-export interface DragStopEventArgs {
+ export interface DragStopEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the draggable model
- */
- model?: ej.Draggable.Model;
+ /** returns the draggable model
+ */
+ model?: ej.Draggable.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the event model values
- */
- event?: any;
+ /** returns the event model values
+ */
+ event?: any;
- /** returns the exact mouse down target element
- */
- target?: any;
-}
+ /** returns the exact mouse down target element
+ */
+ target?: any;
+ }
-export interface HelperEventArgs {
+ export interface HelperEventArgs {
- /** returns the draggable element object
- */
- element?: any;
+ /** returns the draggable element object
+ */
+ element?: any;
- /** returns the event model values
- */
- sender?: any;
-}
-}
+ /** returns the event model values
+ */
+ sender?: any;
+ }
+ }
-class Droppable extends ej.Widget {
- static fn: Droppable;
- constructor(element: JQuery | Element, options?: Droppable.Model);
- static Locale: any;
- model: Droppable.Model;
- defaults: Droppable.Model;
-
- /** destroy in the Droppable.
- * @returns {void}
- */
- _destroy(): void;
-}
-export namespace Droppable {
-
-export interface Model {
-
- /** Used to accept the specified draggable items.
- * @Default {null}
- */
- accept?: any;
-
- /** Used to group sets of droppable items, in addition to droppable's accept option. A draggable with the same scope value as a droppable will be accepted by the droppable.
- * @Default {'default'}
- */
- scope?: string;
-
- /** This event is triggered when the mouse up is moved during the dragging. */
- drop?(e: DropEventArgs): void;
-
- /** This event is triggered when the mouse is moved out. */
- out?(e: OutEventArgs): void;
-
- /** This event is triggered when the mouse is moved over. */
- over?(e: OverEventArgs): void;
-}
-
-export interface DropEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the autocomplete model
- */
- model?: ej.Droppable.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the element which accepts the droppable element.
- */
- targetElement?: any;
-}
-
-export interface OutEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the autocomplete model
- */
- model?: ej.Droppable.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the mouse out over the element
- */
- targetElement?: any;
-}
-
-export interface OverEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the autocomplete model
- */
- model?: ej.Droppable.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the mouse over the element
- */
- targetElement?: any;
-}
-}
-
-class Resizable extends ej.Widget {
- static fn: Resizable;
- constructor(element: JQuery | Element, options?: Resizable.Model);
- static Locale: any;
- model: Resizable.Model;
- defaults: Resizable.Model;
-
- /** destroy in the Resizable.
- * @returns {void}
- */
- _destroy(): void;
-}
-export namespace Resizable {
-
-export interface Model {
-
- /** Sets the offset of the resizing helper relative to the mouse cursor.
- * @Default {{ top: -1, left: -2 }}
- */
- cursorAt?: any;
-
- /** Distance in pixels after mousedown the mouse must move before resizing should start. This option can be used to prevent unwanted drags when clicking on an element.
- * @Default {1}
- */
- distance?: number;
-
- /** If specified, restricts resize start click to the specified element(s).
- * @Default {null}
- */
- handle?: string;
-
- /** Sets the max height for resizing
- * @Default {null}
- */
- maxHeight?: number;
-
- /** Sets the max width for resizing
- * @Default {null}
- */
- maxWidth?: number;
-
- /** Sets the min Height for resizing
- * @Default {10}
- */
- minHeight?: number;
-
- /** Sets the min Width for resizing
- * @Default {10}
- */
- minWidth?: number;
-
- /** Used to group sets of resizable items.
- * @Default {'default'}
- */
- scope?: string;
-
- /** This event is triggered when the widget destroys. */
- destroy?(e: DestroyEventArgs): void;
-
- /** This event is triggered when resized. */
- helper?(e: HelperEventArgs): void;
-}
-
-export interface DestroyEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the autocomplete model
- */
- model?: ej.Resizable.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface HelperEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the autocomplete model
- */
- model?: ej.Resizable.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-}
-
-
- const globalize: globalize;
- const cultures: culture;
- function addCulture(name: string, culture ?: any): void;
- function preferredCulture(culture ?: string): culture;
- function format(value: any, format: string, culture ?: string): string;
- function parseInt(value: string, radix?: any, culture ?: string): number;
- function parseFloat(value: string, radix?: any, culture ?: string): number;
- function parseDate(value: string, format: string, culture ?: string): Date;
- function getLocalizedConstants(controlName: string, culture ?: string): any;
-
-interface globalize {
- addCulture(name: string, culture?: any): void;
- preferredCulture(culture?: string): culture;
- format(value: any, format: string, culture?: string): string;
- parseInt(value: string, radix?: any, culture?: string): number;
- parseFloat(value: string, radix?: any, culture?: string): number;
- parseDate(value: string, format: string, culture?: string): Date;
- getLocalizedConstants(controlName: string, culture?: string): any;
- }
- interface culture {
- name?: string;
- englishName?: string;
- namtiveName?: string;
- language?: string;
- isRTL: boolean;
- numberFormat?: formatSettings;
- calendars?: calendarsSettings;
- }
- interface formatSettings {
- pattern: string[];
- decimals: number;
- groupSizes: number[];
- percent: percentSettings;
- currency: currencySettings;
- }
- interface percentSettings {
- pattern: string[];
- decimals: number;
- groupSizes: number[];
- symbol: string;
- }
- interface currencySettings {
- pattern: string[];
- decimals: number;
- groupSizes: number[];
- symbol: string;
- }
- interface calendarsSettings {
- standard: standardSettings;
- }
- interface standardSettings {
- firstDay: number;
- days: daySettings;
- months: monthSettings;
- AM: string[];
- PM: string[];
- twoDigitYearMax: number;
- patterns: patternSettings;
- }
- interface daySettings {
- names: string[];
- namesAbbr: string[];
- namesShort: string[];
- }
- interface monthSettings {
- names: string[];
- namesAbbr: string[];
- }
- interface patternSettings {
- d: string;
- D: string;
- t: string;
- T: string;
- f: string;
- F: string;
- M: string;
- Y: string;
- S: string;
- }
-class Scroller extends ej.Widget {
- static fn: Scroller;
- constructor(element: JQuery | Element, options?: Scroller.Model);
- static Locale: any;
- model: Scroller.Model;
- defaults: Scroller.Model;
-
- /** destroy the Scroller control, unbind the all ej control related events automatically and bring the control to pre-init state.
- * @returns {void}
- */
- destroy(): void;
-
- /** User disables the Scroller control at any time.
- * @returns {void}
- */
- disable(): void;
-
- /** User enables the Scroller control at any time.
- * @returns {void}
- */
- enable(): void;
-
- /** Returns true if horizontal scrollbar is shown, else return false.
- * @returns {boolean}
- */
- isHScroll(): boolean;
-
- /** Returns true if vertical scrollbar is shown, else return false.
- * @returns {boolean}
- */
- isVScroll(): boolean;
-
- /** User refreshes the Scroller control at any time.
- * @returns {void}
- */
- refresh(): void;
-
- /** Horizontal scroller moves to given pixel from its origin position. We can also specify the animation speed,in which the scroller has to move while re-positioning it.
- * @param {number|string} Horizontal scroller moves to the specified pixel.
- * @param {boolean} Specifies to enable/disable the animation.
- * @param {number} Specifies the animation speed when scrolling, if animation is enabled.
- * @returns {void}
- */
- scrollX(pixel: number|string, disableAnimation: boolean, animationSpeed: number): void;
-
- /** Vertical scroller moves to given pixel from its origin position. We can also specify the animation speed,in which the scroller has to move while re-positioning it.
- * @param {number|string} Vertical scroller moves to the specified pixel.
- * @param {boolean} Specifies to enable/disable the animation.
- * @param {number} Specifies the animation speed when scrolling, if animation is enabled.
- * @returns {void}
- */
- scrollY(pixel: number|string, disableAnimation: boolean, animationSpeed: number): void;
-}
-export namespace Scroller {
-
-export interface Model {
-
- /** Specifies the swipe scrolling speed(in millisecond).
- * @Default {600}
- */
- animationSpeed?: number;
-
- /** Set true to hides the scrollbar, when mouseout the content area.
- * @Default {false}
- */
- autoHide?: boolean;
-
- /** Specifies the height and width of button in the scrollbar.
- * @Default {18}
- */
- buttonSize?: number;
-
- /** Specifies to enable or disable the scroller
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Save current model value to browser cookies for state maintenance. While refresh the page Rating control values are retained.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Indicates the Right to Left direction to scroller
- * @Default {undefined}
- */
- enableRTL?: boolean;
-
- /** Enables or Disable the touch Scroll
- * @Default {true}
- */
- enableTouchScroll?: boolean;
-
- /** Specifies the height of Scroll panel and scrollbars.
- * @Default {250}
- */
- height?: number|string;
-
- /** If the scrollbar has vertical it set as width, else it will set as height of the handler.
- * @Default {18}
- */
- scrollerSize?: number;
-
- /** The Scroller content and scrollbars move left with given value.
- * @Default {0}
- */
- scrollLeft?: number;
-
- /** While press on the arrow key the scrollbar position added to the given pixel value.
- * @Default {57}
- */
- scrollOneStepBy?: number;
-
- /** The Scroller content and scrollbars move to top position with specified value.
- * @Default {0}
- */
- scrollTop?: number;
-
- /** Indicates the target area to which scroller have to appear.
- * @Default {null}
- */
- targetPane?: string;
-
- /** Specifies the width of Scroll panel and scrollbars.
- * @Default {0}
- */
- width?: number|string;
-
- /** Fires when Scroller control is created. */
- create?(e: CreateEventArgs): void;
-
- /** Fires when Scroller control is destroyed. */
- destroy?(e: DestroyEventArgs): void;
-
- /** Fires when a thumb point is moved along the touch surface. */
- thumbMove?(e: ThumbMoveEventArgs): void;
-
- /** Fires when a thumb point is placed on the touch surface. */
- thumbStart?(e: ThumbStartEventArgs): void;
-
- /** Fires when a thumb point is removed from the touch surface. */
- thumbEnd?(e: ThumbEndEventArgs): void;
-
- /** It fires whenever the mouse wheel is rotated either in upwards or downwards. */
- wheelMove?(e: WheelMoveEventArgs): void;
-
- /** It will fire when mouse trackball has been start to wheel. */
- wheelStart?(e: WheelStartEventArgs): void;
-
- /** It will fire when mouse trackball has been stop to wheel. */
- wheelStop?(e: WheelStopEventArgs): void;
-}
+ class Droppable extends ej.Widget {
+ static fn: Droppable;
+ constructor(element: JQuery | Element, options?: Droppable.Model);
+ static Locale: any;
+ model: Droppable.Model;
+ defaults: Droppable.Model;
+
+ /** destroy in the Droppable.
+ * @returns {void}
+ */
+ _destroy(): void;
+ }
+ export namespace Droppable {
+
+ export interface Model {
+
+ /** Used to accept the specified draggable items.
+ * @Default {null}
+ */
+ accept?: any;
+
+ /** Used to group sets of droppable items, in addition to droppable's accept option. A draggable with the same scope value as a droppable will be accepted by the droppable.
+ * @Default {'default'}
+ */
+ scope?: string;
+
+ /** This event is triggered when the mouse up is moved during the dragging. */
+ drop?(e: DropEventArgs): void;
+
+ /** This event is triggered when the mouse is moved out. */
+ out?(e: OutEventArgs): void;
+
+ /** This event is triggered when the mouse is moved over. */
+ over?(e: OverEventArgs): void;
+ }
+
+ export interface DropEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the autocomplete model
+ */
+ model?: ej.Droppable.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the element which accepts the droppable element.
+ */
+ targetElement?: any;
+ }
+
+ export interface OutEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the autocomplete model
+ */
+ model?: ej.Droppable.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the mouse out over the element
+ */
+ targetElement?: any;
+ }
+
+ export interface OverEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the autocomplete model
+ */
+ model?: ej.Droppable.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the mouse over the element
+ */
+ targetElement?: any;
+ }
+ }
+
+ class Resizable extends ej.Widget {
+ static fn: Resizable;
+ constructor(element: JQuery | Element, options?: Resizable.Model);
+ static Locale: any;
+ model: Resizable.Model;
+ defaults: Resizable.Model;
+
+ /** destroy in the Resizable.
+ * @returns {void}
+ */
+ _destroy(): void;
+ }
+ export namespace Resizable {
+
+ export interface Model {
+
+ /** Sets the offset of the resizing helper relative to the mouse cursor.
+ * @Default {{ top: -1, left: -2 }}
+ */
+ cursorAt?: any;
+
+ /** Distance in pixels after mousedown the mouse must move before resizing should start. This option can be used to prevent unwanted drags when clicking on an element.
+ * @Default {1}
+ */
+ distance?: number;
+
+ /** If specified, restricts resize start click to the specified element(s).
+ * @Default {null}
+ */
+ handle?: string;
+
+ /** Sets the max height for resizing
+ * @Default {null}
+ */
+ maxHeight?: number;
+
+ /** Sets the max width for resizing
+ * @Default {null}
+ */
+ maxWidth?: number;
+
+ /** Sets the min Height for resizing
+ * @Default {10}
+ */
+ minHeight?: number;
+
+ /** Sets the min Width for resizing
+ * @Default {10}
+ */
+ minWidth?: number;
+
+ /** Used to group sets of resizable items.
+ * @Default {'default'}
+ */
+ scope?: string;
+
+ /** This event is triggered when the widget destroys. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** This event is triggered when resized. */
+ helper?(e: HelperEventArgs): void;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the autocomplete model
+ */
+ model?: ej.Resizable.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface HelperEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the autocomplete model
+ */
+ model?: ej.Resizable.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+ }
+
+
+ const globalize: globalize;
+ const cultures: culture;
+ function addCulture(name: string, culture?: any): void;
+ function preferredCulture(culture?: string): culture;
+ function format(value: any, format: string, culture?: string): string;
+ function parseInt(value: string, radix?: any, culture?: string): number;
+ function parseFloat(value: string, radix?: any, culture?: string): number;
+ function parseDate(value: string, format: string, culture?: string): Date;
+ function getLocalizedConstants(controlName: string, culture?: string): any;
+
+ interface globalize {
+ addCulture(name: string, culture?: any): void;
+ preferredCulture(culture?: string): culture;
+ format(value: any, format: string, culture?: string): string;
+ parseInt(value: string, radix?: any, culture?: string): number;
+ parseFloat(value: string, radix?: any, culture?: string): number;
+ parseDate(value: string, format: string, culture?: string): Date;
+ getLocalizedConstants(controlName: string, culture?: string): any;
+ }
+ interface culture {
+ name?: string;
+ englishName?: string;
+ namtiveName?: string;
+ language?: string;
+ isRTL: boolean;
+ numberFormat?: formatSettings;
+ calendars?: calendarsSettings;
+ }
+ interface formatSettings {
+ pattern: string[];
+ decimals: number;
+ groupSizes: number[];
+ percent: percentSettings;
+ currency: currencySettings;
+ }
+ interface percentSettings {
+ pattern: string[];
+ decimals: number;
+ groupSizes: number[];
+ symbol: string;
+ }
+ interface currencySettings {
+ pattern: string[];
+ decimals: number;
+ groupSizes: number[];
+ symbol: string;
+ }
+ interface calendarsSettings {
+ standard: standardSettings;
+ }
+ interface standardSettings {
+ firstDay: number;
+ days: daySettings;
+ months: monthSettings;
+ AM: string[];
+ PM: string[];
+ twoDigitYearMax: number;
+ patterns: patternSettings;
+ }
+ interface daySettings {
+ names: string[];
+ namesAbbr: string[];
+ namesShort: string[];
+ }
+ interface monthSettings {
+ names: string[];
+ namesAbbr: string[];
+ }
+ interface patternSettings {
+ d: string;
+ D: string;
+ t: string;
+ T: string;
+ f: string;
+ F: string;
+ M: string;
+ Y: string;
+ S: string;
+ }
+ class Scroller extends ej.Widget {
+ static fn: Scroller;
+ constructor(element: JQuery | Element, options?: Scroller.Model);
+ static Locale: any;
+ model: Scroller.Model;
+ defaults: Scroller.Model;
+
+ /** destroy the Scroller control, unbind the all ej control related events automatically and bring the control to pre-init state.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** User disables the Scroller control at any time.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** User enables the Scroller control at any time.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Returns true if horizontal scrollbar is shown, else return false.
+ * @returns {boolean}
+ */
+ isHScroll(): boolean;
+
+ /** Returns true if vertical scrollbar is shown, else return false.
+ * @returns {boolean}
+ */
+ isVScroll(): boolean;
+
+ /** User refreshes the Scroller control at any time.
+ * @returns {void}
+ */
+ refresh(): void;
+
+ /** Horizontal scroller moves to given pixel from its origin position. We can also specify the animation speed,in which the scroller has to move while re-positioning it.
+ * @param {number|string} Horizontal scroller moves to the specified pixel.
+ * @param {boolean} Specifies to enable/disable the animation.
+ * @param {number} Specifies the animation speed when scrolling, if animation is enabled.
+ * @returns {void}
+ */
+ scrollX(pixel: number | string, disableAnimation: boolean, animationSpeed: number): void;
+
+ /** Vertical scroller moves to given pixel from its origin position. We can also specify the animation speed,in which the scroller has to move while re-positioning it.
+ * @param {number|string} Vertical scroller moves to the specified pixel.
+ * @param {boolean} Specifies to enable/disable the animation.
+ * @param {number} Specifies the animation speed when scrolling, if animation is enabled.
+ * @returns {void}
+ */
+ scrollY(pixel: number | string, disableAnimation: boolean, animationSpeed: number): void;
+ }
+ export namespace Scroller {
+
+ export interface Model {
+
+ /** Specifies the swipe scrolling speed(in millisecond).
+ * @Default {600}
+ */
+ animationSpeed?: number;
+
+ /** Set true to hides the scrollbar, when mouseout the content area.
+ * @Default {false}
+ */
+ autoHide?: boolean;
+
+ /** Specifies the height and width of button in the scrollbar.
+ * @Default {18}
+ */
+ buttonSize?: number;
+
+ /** Specifies to enable or disable the scroller
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Save current model value to browser cookies for state maintenance. While refresh the page Rating control values are retained.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Indicates the Right to Left direction to scroller
+ * @Default {undefined}
+ */
+ enableRTL?: boolean;
+
+ /** Enables or Disable the touch Scroll
+ * @Default {true}
+ */
+ enableTouchScroll?: boolean;
+
+ /** Specifies the height of Scroll panel and scrollbars.
+ * @Default {250}
+ */
+ height?: number | string;
+
+ /** If the scrollbar has vertical it set as width, else it will set as height of the handler.
+ * @Default {18}
+ */
+ scrollerSize?: number;
+
+ /** The Scroller content and scrollbars move left with given value.
+ * @Default {0}
+ */
+ scrollLeft?: number;
+
+ /** While press on the arrow key the scrollbar position added to the given pixel value.
+ * @Default {57}
+ */
+ scrollOneStepBy?: number;
+
+ /** The Scroller content and scrollbars move to top position with specified value.
+ * @Default {0}
+ */
+ scrollTop?: number;
+
+ /** Indicates the target area to which scroller have to appear.
+ * @Default {null}
+ */
+ targetPane?: string;
+
+ /** Specifies the width of Scroll panel and scrollbars.
+ * @Default {0}
+ */
+ width?: number | string;
+
+ /** Fires when Scroller control is created. */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when Scroller control is destroyed. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Fires when a thumb point is moved along the touch surface. */
+ thumbMove?(e: ThumbMoveEventArgs): void;
+
+ /** Fires when a thumb point is placed on the touch surface. */
+ thumbStart?(e: ThumbStartEventArgs): void;
+
+ /** Fires when a thumb point is removed from the touch surface. */
+ thumbEnd?(e: ThumbEndEventArgs): void;
+
+ /** It fires whenever the mouse wheel is rotated either in upwards or downwards. */
+ wheelMove?(e: WheelMoveEventArgs): void;
+
+ /** It will fire when mouse trackball has been start to wheel. */
+ wheelStart?(e: WheelStartEventArgs): void;
+
+ /** It will fire when mouse trackball has been stop to wheel. */
+ wheelStop?(e: WheelStopEventArgs): void;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the scroller model
- */
- model?: ej.Scroller.Model;
+ /** returns the scroller model
+ */
+ model?: ej.Scroller.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** returns the scroller model
- */
- model?: ej.Scroller.Model;
+ /** returns the scroller model
+ */
+ model?: ej.Scroller.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface ThumbMoveEventArgs {
+ export interface ThumbMoveEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the scroller model
- */
- model?: ej.Scroller.Model;
+ /** returns the scroller model
+ */
+ model?: ej.Scroller.Model;
- /** returns the original event name and its event properties of the current event.
- */
- originalEvent?: any;
+ /** returns the original event name and its event properties of the current event.
+ */
+ originalEvent?: any;
- /** returns the current data related to the event.
- */
- scrollData?: any;
+ /** returns the current data related to the event.
+ */
+ scrollData?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface ThumbStartEventArgs {
+ export interface ThumbStartEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the scroller model
- */
- model?: ej.Scroller.Model;
+ /** returns the scroller model
+ */
+ model?: ej.Scroller.Model;
- /** returns the original event name and its event properties of the current event.
- */
- originalEvent?: any;
+ /** returns the original event name and its event properties of the current event.
+ */
+ originalEvent?: any;
- /** returns the current data related to the event.
- */
- scrollData?: any;
+ /** returns the current data related to the event.
+ */
+ scrollData?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface ThumbEndEventArgs {
+ export interface ThumbEndEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the scroller model
- */
- model?: ej.Scroller.Model;
+ /** returns the scroller model
+ */
+ model?: ej.Scroller.Model;
- /** returns the original event name and its event properties of the current event.
- */
- originalEvent?: any;
+ /** returns the original event name and its event properties of the current event.
+ */
+ originalEvent?: any;
- /** returns the current data related to the event.
- */
- scrollData?: any;
+ /** returns the current data related to the event.
+ */
+ scrollData?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
-
-export interface WheelMoveEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the scroller model
- */
- model?: ej.Scroller.Model;
-
- /** returns the original event name and its event properties of the current event.
- */
- originalEvent?: any;
-}
-
-export interface WheelStartEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the scroller model
- */
- model?: ej.Scroller.Model;
-
- /** returns the original event name and its event properties of the current event.
- */
- originalEvent?: any;
-
- /** returns the current data related to the event.
- */
- scrollData?: any;
-
- /** returns the name of the event.
- */
- type?: string;
-}
-
-export interface WheelStopEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the scroller model
- */
- model?: ej.Scroller.Model;
-
- /** returns the name of the event.
- */
- type?: string;
-
- /** returns the original event name and its event properties of the current event.
- */
- originalEvent?: any;
-}
-}
-
-class Accordion extends ej.Widget {
- static fn: Accordion;
- constructor(element: JQuery | Element, options?: Accordion.Model);
- static Locale: any;
- model: Accordion.Model;
- defaults: Accordion.Model;
-
- /** AddItem method is used to add the panel in dynamically. It receives the following parameters
- * @param {string} specify the name of the header
- * @param {string} content of the new panel
- * @param {number} insertion place of the new panel
- * @param {boolean} Enable or disable the AJAX request to the added panel
- * @returns {void}
- */
- addItem(header_name: string, content: string, index: number, isAjaxReq: boolean): void;
-
- /** This method used to collapse the all the expanded items in accordion at a time.
- * @returns {void}
- */
- collapseAll(): void;
-
- /** This method used to Collapses the specified items in accordion at a time.
- * @returns {void}
- */
- collapsePanel(): void;
-
- /** destroy the Accordion widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
- * @returns {void}
- */
- destroy(): void;
-
- /** Disables the accordion widget includes all the headers and content panels.
- * @returns {void}
- */
- disable(): void;
-
- /** Disable the accordion widget item based on specified header index.
- * @param {Array} index values to disable the panels
- * @returns {void}
- */
- disableItems(index: any[]): void;
-
- /** Enable the accordion widget includes all the headers and content panels.
- * @returns {void}
- */
- enable(): void;
-
- /** Enable the accordion widget item based on specified header index.
- * @param {Array} index values to enable the panels
- * @returns {void}
- */
- enableItems(index: any[]): void;
-
- /** To expand all the accordion widget items.
- * @returns {void}
- */
- expandAll(): void;
-
- /** This method used to Expand the specified items in accordion at a time.
- * @returns {void}
- */
- expandPanel(): void;
-
- /** Returns the total number of panels in the control.
- * @returns {number}
- */
- getItemsCount(): number;
-
- /** Hides the visible Accordion control.
- * @returns {void}
- */
- hide(): void;
-
- /** The refresh method is used to adjust the control size based on the parent element dimension.
- * @returns {void}
- */
- refresh(): void;
-
- /** RemoveItem method is used to remove the specified index panel.It receives the parameter as number.
- * @param {number} specify the index value for remove the accordion panel.
- * @returns {void}
- */
- removeItem(index: number): void;
-
- /** Shows the hidden Accordion control.
- * @returns {void}
- */
- show(): void;
-}
-export namespace Accordion {
-
-export interface Model {
-
- /** Specifies the ajaxSettings option to load the content to the accordion control.
- * @Default {null}
- */
- ajaxSettings?: AjaxSettings;
-
- /** Accordion headers can be expanded and collapsed on keyboard action.
- * @Default {true}
- */
- allowKeyboardNavigation?: boolean;
-
- /** To set the Accordion headers Collapse Speed.
- * @Default {300}
- */
- collapseSpeed?: number;
-
- /** Specifies the collapsible state of accordion control.
- * @Default {false}
- */
- collapsible?: boolean;
-
- /** Sets the root CSS class for Accordion theme, which is used customize.
- */
- cssClass?: string;
-
- /** Allows you to set the custom header Icon. It accepts two key values “header”, ”selectedHeader”.
- * @Default {{ header: e-collapse, selectedHeader: e-expand }}
- */
- customIcon?: CustomIcon;
-
- /** Disables the specified indexed items in accordion.
- * @Default {[]}
- */
- disabledItems?: number[];
-
- /** Specifies the animation behavior in accordion.
- * @Default {true}
- */
- enableAnimation?: boolean;
-
- /** With this enabled property, you can enable or disable the Accordion.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Used to enable the disabled items in accordion.
- * @Default {[]}
- */
- enabledItems?: number[];
-
- /** Multiple content panels to activate at a time.
- * @Default {false}
- */
- enableMultipleOpen?: boolean;
-
- /** Save current model value to browser cookies for maintaining states. When refreshing the accordion control page, the model value is applied from browser cookies or HTML 5local storage.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Display headers and panel text from right-to-left.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** The events API binds the action for activating the accordion header. Users can activate the header by using mouse actions such as mouse-over, mouse-up, mouse-down, and soon.
- * @Default {click}
- */
- events?: string;
-
- /** To set the Accordion headers Expand Speed.
- * @Default {300}
- */
- expandSpeed?: number;
-
- /** Sets the height for Accordion items header.
- */
- headerSize?: number|string;
-
- /** Specifies height of the accordion.
- * @Default {null}
- */
- height?: number|string;
-
- /** Adjusts the content panel height based on the given option (content, auto, or fill). By default, the panel heights are adjusted based on the content.
- * @Default {content}
- */
- heightAdjustMode?: ej.Accordion.HeightAdjustMode|string;
-
- /** It allows to define the characteristics of the Accordion control. It will helps to extend the capability of an HTML element.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** The given index header will activate (open). If collapsible is set to true, and a negative value is given, then all headers are collapsed. Otherwise, the first panel isactivated.
- * @Default {0}
- */
- selectedItemIndex?: number;
-
- /** Activate the specified indexed items of the accordion
- * @Default {[0]}
- */
- selectedItems?: number[];
-
- /** Used to determines the close button visibility an each accordion items. This close button helps to remove the accordion item from the control.
- * @Default {false}
- */
- showCloseButton?: boolean;
-
- /** Displays rounded corner borders on the Accordion control's panels and headers.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Specifies width of the accordion.
- * @Default {null}
- */
- width?: number|string;
-
- /** Triggered after a Accordion item is active or inactive. Argument values are activeIndex, activeHeader, inActiveHeader, inActiveIndex and current model value. */
- activate?(e: ActivateEventArgs): void;
-
- /** Triggered before the AJAX content is loaded in a content panel. Arguments have location of the content (URL) and current model value. */
- ajaxBeforeLoad?(e: AjaxBeforeLoadEventArgs): void;
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
+
+ export interface WheelMoveEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the scroller model
+ */
+ model?: ej.Scroller.Model;
+
+ /** returns the original event name and its event properties of the current event.
+ */
+ originalEvent?: any;
+ }
+
+ export interface WheelStartEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the scroller model
+ */
+ model?: ej.Scroller.Model;
+
+ /** returns the original event name and its event properties of the current event.
+ */
+ originalEvent?: any;
+
+ /** returns the current data related to the event.
+ */
+ scrollData?: any;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
+
+ export interface WheelStopEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the scroller model
+ */
+ model?: ej.Scroller.Model;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+
+ /** returns the original event name and its event properties of the current event.
+ */
+ originalEvent?: any;
+ }
+ }
+
+ class Accordion extends ej.Widget {
+ static fn: Accordion;
+ constructor(element: JQuery | Element, options?: Accordion.Model);
+ static Locale: any;
+ model: Accordion.Model;
+ defaults: Accordion.Model;
+
+ /** AddItem method is used to add the panel in dynamically. It receives the following parameters
+ * @param {string} specify the name of the header
+ * @param {string} content of the new panel
+ * @param {number} insertion place of the new panel
+ * @param {boolean} Enable or disable the AJAX request to the added panel
+ * @returns {void}
+ */
+ addItem(header_name: string, content: string, index: number, isAjaxReq: boolean): void;
+
+ /** This method used to collapse the all the expanded items in accordion at a time.
+ * @returns {void}
+ */
+ collapseAll(): void;
+
+ /** This method used to Collapses the specified items in accordion at a time.
+ * @returns {void}
+ */
+ collapsePanel(): void;
+
+ /** destroy the Accordion widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** Disables the accordion widget includes all the headers and content panels.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Disable the accordion widget item based on specified header index.
+ * @param {Array} index values to disable the panels
+ * @returns {void}
+ */
+ disableItems(index: any[]): void;
+
+ /** Enable the accordion widget includes all the headers and content panels.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Enable the accordion widget item based on specified header index.
+ * @param {Array} index values to enable the panels
+ * @returns {void}
+ */
+ enableItems(index: any[]): void;
+
+ /** To expand all the accordion widget items.
+ * @returns {void}
+ */
+ expandAll(): void;
+
+ /** This method used to Expand the specified items in accordion at a time.
+ * @returns {void}
+ */
+ expandPanel(): void;
+
+ /** Returns the total number of panels in the control.
+ * @returns {number}
+ */
+ getItemsCount(): number;
+
+ /** Hides the visible Accordion control.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** The refresh method is used to adjust the control size based on the parent element dimension.
+ * @returns {void}
+ */
+ refresh(): void;
+
+ /** RemoveItem method is used to remove the specified index panel.It receives the parameter as number.
+ * @param {number} specify the index value for remove the accordion panel.
+ * @returns {void}
+ */
+ removeItem(index: number): void;
+
+ /** Shows the hidden Accordion control.
+ * @returns {void}
+ */
+ show(): void;
+ }
+ export namespace Accordion {
+
+ export interface Model {
+
+ /** Specifies the ajaxSettings option to load the content to the accordion control.
+ * @Default {null}
+ */
+ ajaxSettings?: AjaxSettings;
+
+ /** Accordion headers can be expanded and collapsed on keyboard action.
+ * @Default {true}
+ */
+ allowKeyboardNavigation?: boolean;
+
+ /** To set the Accordion headers Collapse Speed.
+ * @Default {300}
+ */
+ collapseSpeed?: number;
+
+ /** Specifies the collapsible state of accordion control.
+ * @Default {false}
+ */
+ collapsible?: boolean;
+
+ /** Sets the root CSS class for Accordion theme, which is used customize.
+ */
+ cssClass?: string;
+
+ /** Allows you to set the custom header Icon. It accepts two key values “headerâ€, â€selectedHeaderâ€.
+ * @Default {{ header: e-collapse, selectedHeader: e-expand }}
+ */
+ customIcon?: CustomIcon;
+
+ /** Disables the specified indexed items in accordion.
+ * @Default {[]}
+ */
+ disabledItems?: number[];
+
+ /** Specifies the animation behavior in accordion.
+ * @Default {true}
+ */
+ enableAnimation?: boolean;
+
+ /** With this enabled property, you can enable or disable the Accordion.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Used to enable the disabled items in accordion.
+ * @Default {[]}
+ */
+ enabledItems?: number[];
+
+ /** Multiple content panels to activate at a time.
+ * @Default {false}
+ */
+ enableMultipleOpen?: boolean;
+
+ /** Save current model value to browser cookies for maintaining states. When refreshing the accordion control page, the model value is applied from browser cookies or HTML 5local storage.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Display headers and panel text from right-to-left.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** The events API binds the action for activating the accordion header. Users can activate the header by using mouse actions such as mouse-over, mouse-up, mouse-down, and soon.
+ * @Default {click}
+ */
+ events?: string;
+
+ /** To set the Accordion headers Expand Speed.
+ * @Default {300}
+ */
+ expandSpeed?: number;
+
+ /** Sets the height for Accordion items header.
+ */
+ headerSize?: number | string;
+
+ /** Specifies height of the accordion.
+ * @Default {null}
+ */
+ height?: number | string;
+
+ /** Adjusts the content panel height based on the given option (content, auto, or fill). By default, the panel heights are adjusted based on the content.
+ * @Default {content}
+ */
+ heightAdjustMode?: ej.Accordion.HeightAdjustMode | string;
+
+ /** It allows to define the characteristics of the Accordion control. It will helps to extend the capability of an HTML element.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** The given index header will activate (open). If collapsible is set to true, and a negative value is given, then all headers are collapsed. Otherwise, the first panel isactivated.
+ * @Default {0}
+ */
+ selectedItemIndex?: number;
+
+ /** Activate the specified indexed items of the accordion
+ * @Default {[0]}
+ */
+ selectedItems?: number[];
+
+ /** Used to determines the close button visibility an each accordion items. This close button helps to remove the accordion item from the control.
+ * @Default {false}
+ */
+ showCloseButton?: boolean;
+
+ /** Displays rounded corner borders on the Accordion control's panels and headers.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Specifies width of the accordion.
+ * @Default {null}
+ */
+ width?: number | string;
+
+ /** Triggered after a Accordion item is active or inactive. Argument values are activeIndex, activeHeader, inActiveHeader, inActiveIndex and current model value. */
+ activate?(e: ActivateEventArgs): void;
+
+ /** Triggered before the AJAX content is loaded in a content panel. Arguments have location of the content (URL) and current model value. */
+ ajaxBeforeLoad?(e: AjaxBeforeLoadEventArgs): void;
- /** Triggered after AJAX load failed action. Arguments have URL, error message, and current model value. */
- ajaxError?(e: AjaxErrorEventArgs): void;
-
- /** Triggered after the AJAX content loads. Arguments have current model values. */
- ajaxLoad?(e: AjaxLoadEventArgs): void;
-
- /** Triggered after AJAX success action. Arguments have URL, content, and current model values. */
- ajaxSuccess?(e: AjaxSuccessEventArgs): void;
+ /** Triggered after AJAX load failed action. Arguments have URL, error message, and current model value. */
+ ajaxError?(e: AjaxErrorEventArgs): void;
+
+ /** Triggered after the AJAX content loads. Arguments have current model values. */
+ ajaxLoad?(e: AjaxLoadEventArgs): void;
+
+ /** Triggered after AJAX success action. Arguments have URL, content, and current model values. */
+ ajaxSuccess?(e: AjaxSuccessEventArgs): void;
- /** Triggered before a tab item is active. Arguments have active index and model values. */
- beforeActivate?(e: BeforeActivateEventArgs): void;
-
- /** Triggered after a Accordion item is active or inactive. Argument values are activeIndex, activeHeader, inActiveHeader, inActiveIndex and current model value. */
- beforeInactivate?(e: BeforeInactivateEventArgs): void;
+ /** Triggered before a tab item is active. Arguments have active index and model values. */
+ beforeActivate?(e: BeforeActivateEventArgs): void;
+
+ /** Triggered after a Accordion item is active or inactive. Argument values are activeIndex, activeHeader, inActiveHeader, inActiveIndex and current model value. */
+ beforeInactivate?(e: BeforeInactivateEventArgs): void;
- /** Triggered after Accordion control creation. */
- create?(e: CreateEventArgs): void;
+ /** Triggered after Accordion control creation. */
+ create?(e: CreateEventArgs): void;
- /** Triggered after Accordion control destroy. */
- destroy?(e: DestroyEventArgs): void;
+ /** Triggered after Accordion control destroy. */
+ destroy?(e: DestroyEventArgs): void;
- /** Triggered after a Accordion item is active or inactive. Argument values are activeIndex, activeHeader, inActiveHeader, inActiveIndex and current model value. */
- inActivate?(e: InActivateEventArgs): void;
-}
+ /** Triggered after a Accordion item is active or inactive. Argument values are activeIndex, activeHeader, inActiveHeader, inActiveIndex and current model value. */
+ inActivate?(e: InActivateEventArgs): void;
+ }
-export interface ActivateEventArgs {
+ export interface ActivateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the accordion model
- */
- model?: ej.Accordion.Model;
+ /** returns the accordion model
+ */
+ model?: ej.Accordion.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns active index
- */
- activeIndex?: number;
+ /** returns active index
+ */
+ activeIndex?: number;
- /** returns current active header
- */
- activeHeader?: any;
+ /** returns current active header
+ */
+ activeHeader?: any;
- /** returns true when the Accordion index activated by user interaction otherwise returns false
- */
- isInteraction?: boolean;
-}
+ /** returns true when the Accordion index activated by user interaction otherwise returns false
+ */
+ isInteraction?: boolean;
+ }
-export interface AjaxBeforeLoadEventArgs {
+ export interface AjaxBeforeLoadEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the accordion model
- */
- model?: ej.Accordion.Model;
+ /** returns the accordion model
+ */
+ model?: ej.Accordion.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns current AJAX content location
- */
- URL?: string;
-}
+ /** returns current AJAX content location
+ */
+ URL?: string;
+ }
-export interface AjaxErrorEventArgs {
+ export interface AjaxErrorEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the accordion model
- */
- model?: ej.Accordion.Model;
+ /** returns the accordion model
+ */
+ model?: ej.Accordion.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns current AJAX content location
- */
- URL?: string;
+ /** returns current AJAX content location
+ */
+ URL?: string;
- /** returns the failed data sent.
- */
- data?: string;
-}
+ /** returns the failed data sent.
+ */
+ data?: string;
+ }
-export interface AjaxLoadEventArgs {
+ export interface AjaxLoadEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the accordion model
- */
- model?: ej.Accordion.Model;
+ /** returns the accordion model
+ */
+ model?: ej.Accordion.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the URL
- */
- URL?: string;
-}
+ /** returns the name of the URL
+ */
+ URL?: string;
+ }
-export interface AjaxSuccessEventArgs {
+ export interface AjaxSuccessEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the accordion model
- */
- model?: ej.Accordion.Model;
+ /** returns the accordion model
+ */
+ model?: ej.Accordion.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns current AJAX content location
- */
- URL?: string;
+ /** returns current AJAX content location
+ */
+ URL?: string;
- /** returns the successful data sent.
- */
- data?: string;
+ /** returns the successful data sent.
+ */
+ data?: string;
- /** returns the AJAX content.
- */
- content?: string;
-}
+ /** returns the AJAX content.
+ */
+ content?: string;
+ }
-export interface BeforeActivateEventArgs {
+ export interface BeforeActivateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the accordion model
- */
- model?: ej.Accordion.Model;
+ /** returns the accordion model
+ */
+ model?: ej.Accordion.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns active index
- */
- activeIndex?: number;
+ /** returns active index
+ */
+ activeIndex?: number;
- /** returns true when the Accordion index activated by user interaction otherwise returns false
- */
- isInteraction?: boolean;
-}
+ /** returns true when the Accordion index activated by user interaction otherwise returns false
+ */
+ isInteraction?: boolean;
+ }
-export interface BeforeInactivateEventArgs {
+ export interface BeforeInactivateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the accordion model
- */
- model?: ej.Accordion.Model;
+ /** returns the accordion model
+ */
+ model?: ej.Accordion.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns active index
- */
- inActiveIndex?: number;
+ /** returns active index
+ */
+ inActiveIndex?: number;
- /** returns true when the Accordion index activated by user interaction otherwise returns false
- */
- isInteraction?: boolean;
-}
+ /** returns true when the Accordion index activated by user interaction otherwise returns false
+ */
+ isInteraction?: boolean;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the accordion model
- */
- model?: ej.Accordion.Model;
+ /** returns the accordion model
+ */
+ model?: ej.Accordion.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the accordion model
- */
- model?: ej.Accordion.Model;
+ /** returns the accordion model
+ */
+ model?: ej.Accordion.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface InActivateEventArgs {
+ export interface InActivateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the accordion model
- */
- model?: ej.Accordion.Model;
+ /** returns the accordion model
+ */
+ model?: ej.Accordion.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns active index
- */
- inActiveIndex?: number;
+ /** returns active index
+ */
+ inActiveIndex?: number;
- /** returns in active element
- */
- inActiveHeader?: any;
+ /** returns in active element
+ */
+ inActiveHeader?: any;
- /** returns true when the Accordion index activated by user interaction otherwise returns false
- */
- isInteraction?: boolean;
-}
+ /** returns true when the Accordion index activated by user interaction otherwise returns false
+ */
+ isInteraction?: boolean;
+ }
-export interface AjaxSettings {
+ export interface AjaxSettings {
- /** It specifies, whether to enable or disable asynchronous request.
- */
- async?: boolean;
+ /** It specifies, whether to enable or disable asynchronous request.
+ */
+ async?: boolean;
- /** It specifies the page will be cached in the web browser.
- */
- cache?: boolean;
+ /** It specifies the page will be cached in the web browser.
+ */
+ cache?: boolean;
- /** It specifies the type of data is send in the query string.
- */
- contentType?: string;
-
- /** It specifies the data as an object, will be passed in the query string.
- */
- data?: any;
-
- /** It specifies the type of data that you're expecting back from the response.
- */
- dataType?: string;
-
- /** It specifies the HTTP request type.
- */
- type?: string;
-}
-
-export interface CustomIcon {
-
- /** This class name set to collapsing header.
- */
- header?: string;
-
- /** This class name set to expanded (active) header.
- */
- selectedHeader?: string;
-}
-
-enum HeightAdjustMode {
-
- ///Height fit to the content in the panel
- Content,
-
- ///Height set to the largest content in the panel
- Auto,
-
- ///Height filled to the content of the panel
- Fill
-}
-
-}
-
-class Autocomplete extends ej.Widget {
- static fn: Autocomplete;
- constructor(element: JQuery | Element, options?: Autocomplete.Model);
- static Locale: any;
- model: Autocomplete.Model;
- defaults: Autocomplete.Model;
-
- /** Clears the text in the Autocomplete textbox.
- * @returns {void}
- */
- clearText(): void;
-
- /** Destroys the Autocomplete widget.
- * @returns {void}
- */
- destroy(): void;
-
- /** Disables the autocomplete widget.
- * @returns {void}
- */
- disable(): void;
-
- /** Enables the autocomplete widget.
- * @returns {void}
- */
- enable(): void;
-
- /** Returns objects (data object) of all the selected items in the autocomplete textbox.
- * @returns {any}
- */
- getSelectedItems(): any;
-
- /** Returns the current selected value from the Autocomplete textbox.
- * @returns {string}
- */
- getValue(): string;
-
- /** Returns the current active text value in the Autocomplete suggestion list.
- * @returns {string}
- */
- getActiveText(): string;
-
- /** Search the entered text and show it in the suggestion list if available.
- * @returns {void}
- */
- search(): void;
-
- /** Open up the autocomplete suggestion popup with all list items.
- * @returns {void}
- */
- open(): void;
-
- /** Sets the value of the Autocomplete textbox based on the given key value.
- * @param {string} The key value of the specific suggestion item.
- * @returns {void}
- */
- selectValueByKey(Key: string): void;
-
- /** Sets the value of the Autocomplete textbox based on the given input text value.
- * @param {string} The text (label) value of the specific suggestion item.
- * @returns {void}
- */
- selectValueByText(Text: string): void;
-}
-export namespace Autocomplete {
-
-export interface Model {
-
- /** Customize "Add New" text (label) to be added in the autocomplete popup list for the entered text when there are no suggestions for it.
- * @Default {Add New}
- */
- addNewText?: boolean;
-
- /** Allows new values to be added to the autocomplete input other than the values in the suggestion list.
- * Normally, when there are no suggestions it will display “No suggestions” label in the popup.
- * @Default {false}
- */
- allowAddNew?: boolean;
-
- /** Enables or disables the sorting of suggestion list item. The default sort order is ascending order. You customize sort order.
- * @Default {true}
- */
- allowSorting?: boolean;
-
- /** Enables or disables selecting the animation style for the popup list. Animation types can be selected through either of the following options,
- * @Default {slide}
- */
- animateType?: ej.Autocomplete.Animation|string;
-
- /** To focus the items in the suggestion list when the popup is shown. By default first item will be focused.
- * @Default {false}
- */
- autoFocus?: boolean;
-
- /** Enables or disables the case sensitive search.
- * @Default {false}
- */
- caseSensitiveSearch?: boolean;
-
- /** The root class for the Autocomplete textbox widget which helps in customizing its theme.
- * @Default {””}
- */
- cssClass?: string;
-
- /** The data source contains the list of data for the suggestions list. It can be a string array or JSON array.
- * @Default {null}
- */
- dataSource?: any|any[];
-
- /** The time delay (in milliseconds) after which the suggestion popup will be shown.
- * @Default {200}
- */
- delaySuggestionTimeout?: number;
-
- /** The special character which acts as a separator for the given words for multi-mode search i.e. the text after the delimiter are considered as a separate word or query for search operation.
- * @Default {’,’}
- */
- delimiterChar?: string;
-
- /** The text to be displayed in the popup when there are no suggestions available for the entered text.
- * @Default {“No suggestions”}
- */
- emptyResultText?: string;
-
- /** Fills the autocomplete textbox with the first matched item from the suggestion list automatically based on the entered text when enabled.
- * @Default {false}
- */
- enableAutoFill?: boolean;
-
- /** Enables or disables the Autocomplete textbox widget.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Enables or disables displaying the duplicate names present in the search result.
- * @Default {false}
- */
- enableDistinct?: boolean;
-
- /** Allows the current model values to be saved in local storage or browser cookies for state maintenance
- * when it is set to true.
- * While refreshing the page, it retains the model value from browser cookies or local storage.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Displays the Autocomplete widget’s content from right to left when enabled.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Mapping fields for the suggestion items of the Autocomplete textbox widget.
- * @Default {null}
- */
- fields?: Fields;
-
- /** Specifies the search filter type.
- * There are several types of search filter available such as ‘startswith’,
- * ‘contains’, ‘endswith’, ‘lessthan’, ‘lessthanorequal’, ‘greaterthan’,
- * ‘greaterthanorequal’, ‘equal’, ‘notequal’.
- * @Default {ej.filterType.StartsWith}
- */
- filterType?: string;
-
- /** The height of the Autocomplete textbox.
- * @Default {null}
- */
- height?: string;
-
- /** The search text can be highlighted in the AutoComplete suggestion list when enabled.
- * @Default {false}
- */
- highlightSearch?: boolean;
-
- /** Number of items to be displayed in the suggestion list.
- * @Default {0}
- */
- itemsCount?: number;
-
- /** Set the localization culture for Autocomplete Widget.
- */
- locale?: string;
-
- /** Minimum number of character to be entered in the Autocomplete textbox to show the suggestion list.
- * @Default {1}
- */
- minCharacter?: number;
-
- /** An Autocomplete column collection can be defined and customized through the multiColumnSettings property.Column's header, field, and stringFormat can be define via multiColumnSettings properties.
- */
- multiColumnSettings?: MultiColumnSettings;
-
- /** Enables or disables selecting multiple values from the suggestion list. Multiple values can be selected through either of the following options,
- * @Default {ej.MultiSelectMode.None}
- */
- multiSelectMode?: ej.Autocomplete.MultiSelectMode|string;
-
- /** The height of the suggestion list.
- * @Default {“152px”}
- */
- popupHeight?: string;
-
- /** The width of the suggestion list.
- * @Default {“auto”}
- */
- popupWidth?: string;
-
- /** The query to retrieve the data from the data source.
- * @Default {null}
- */
- query?: ej.Query;
-
- /** Indicates that the autocomplete textbox values can only be readable.
- * @Default {false}
- */
- readOnly?: boolean;
-
- /** Sets the value for the Autocomplete textbox based on the given input key value.
- */
- selectValueByKey?: number;
-
- /** Enables or disables showing the message when there are no suggestions for the entered text.
- * @Default {true}
- */
- showEmptyResultText?: boolean;
-
- /** Enables or disables the loading icon to intimate the searching operation. The loading icon is visible when there is a time delay to perform the search.
- * @Default {true}
- */
- showLoadingIcon?: boolean;
-
- /** Enables the showPopup button in autocomplete textbox. When the showPopup button is clicked, it displays all the available data from the data source.
- * @Default {false}
- */
- showPopupButton?: boolean;
-
- /** Enables or disables rounded corner.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Enables or disables reset icon to clear the textbox values.
- * @Default {false}
- */
- showResetIcon?: boolean;
-
- /** Sort order specifies whether the suggestion list values has to be displayed in ascending or descending order.
- * @Default {ej.SortOrder.Ascending}
- */
- sortOrder?: ej.Autocomplete.SortOrder|string;
-
- /** The template to display the suggestion list items with customized appearance.
- * @Default {null}
- */
- template?: string;
-
- /** The jQuery validation error message to be displayed on form validation.
- * @Default {null}
- */
- validationMessage?: any;
-
- /** The jQuery validation rules for form validation.
- * @Default {null}
- */
- validationRules?: any;
-
- /** The value to be displayed in the autocomplete textbox.
- * @Default {null}
- */
- value?: string;
-
- /** Enables or disables the visibility of the autocomplete textbox.
- * @Default {true}
- */
- visible?: boolean;
-
- /** The text to be displayed when the value of the autocomplete textbox is empty.
- * @Default {null}
- */
- watermarkText?: string;
-
- /** The width of the Autocomplete textbox.
- * @Default {null}
- */
- width?: string;
-
- /** Triggers when the AJAX requests Begins. */
- actionBegin?(e: ActionBeginEventArgs): void;
-
- /** Triggers when the data requested from AJAX will get successfully loaded in the Autocomplete widget. */
- actionSuccess?(e: ActionSuccessEventArgs): void;
-
- /** Triggers when the AJAX requests complete. The request may get failed or succeed. */
- actionComplete?(e: ActionCompleteEventArgs): void;
-
- /** Triggers when the data requested from AJAX get failed. */
- actionFailure?(e: ActionFailureEventArgs): void;
-
- /** Triggers when the text box value is changed. */
- change?(e: ChangeEventArgs): void;
-
- /** Triggers after the suggestion popup is closed. */
- close?(e: CloseEventArgs): void;
-
- /** Triggers when Autocomplete widget is created. */
- create?(e: CreateEventArgs): void;
-
- /** Triggers after the Autocomplete widget is destroyed. */
- destroy?(e: DestroyEventArgs): void;
-
- /** Triggers after the autocomplete textbox is focused. */
- focusIn?(e: FocusInEventArgs): void;
-
- /** Triggers after the Autocomplete textbox gets out of the focus. */
- focusOut?(e: FocusOutEventArgs): void;
-
- /** Triggers after the suggestion list is opened. */
- open?(e: OpenEventArgs): void;
-
- /** Triggers when an item has been selected from the suggestion list. */
- select?(e: SelectEventArgs): void;
-}
-
-export interface ActionBeginEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-}
-
-export interface ActionSuccessEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-}
+ /** It specifies the type of data is send in the query string.
+ */
+ contentType?: string;
+
+ /** It specifies the data as an object, will be passed in the query string.
+ */
+ data?: any;
+
+ /** It specifies the type of data that you're expecting back from the response.
+ */
+ dataType?: string;
+
+ /** It specifies the HTTP request type.
+ */
+ type?: string;
+ }
+
+ export interface CustomIcon {
+
+ /** This class name set to collapsing header.
+ */
+ header?: string;
+
+ /** This class name set to expanded (active) header.
+ */
+ selectedHeader?: string;
+ }
+
+ enum HeightAdjustMode {
+
+ ///Height fit to the content in the panel
+ Content,
+
+ ///Height set to the largest content in the panel
+ Auto,
+
+ ///Height filled to the content of the panel
+ Fill
+ }
+
+ }
+
+ class Autocomplete extends ej.Widget {
+ static fn: Autocomplete;
+ constructor(element: JQuery | Element, options?: Autocomplete.Model);
+ static Locale: any;
+ model: Autocomplete.Model;
+ defaults: Autocomplete.Model;
+
+ /** Clears the text in the Autocomplete textbox.
+ * @returns {void}
+ */
+ clearText(): void;
+
+ /** Destroys the Autocomplete widget.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** Disables the autocomplete widget.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Enables the autocomplete widget.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Returns objects (data object) of all the selected items in the autocomplete textbox.
+ * @returns {any}
+ */
+ getSelectedItems(): any;
+
+ /** Returns the current selected value from the Autocomplete textbox.
+ * @returns {string}
+ */
+ getValue(): string;
+
+ /** Returns the current active text value in the Autocomplete suggestion list.
+ * @returns {string}
+ */
+ getActiveText(): string;
+
+ /** Search the entered text and show it in the suggestion list if available.
+ * @returns {void}
+ */
+ search(): void;
+
+ /** Open up the autocomplete suggestion popup with all list items.
+ * @returns {void}
+ */
+ open(): void;
+
+ /** Sets the value of the Autocomplete textbox based on the given key value.
+ * @param {string} The key value of the specific suggestion item.
+ * @returns {void}
+ */
+ selectValueByKey(Key: string): void;
+
+ /** Sets the value of the Autocomplete textbox based on the given input text value.
+ * @param {string} The text (label) value of the specific suggestion item.
+ * @returns {void}
+ */
+ selectValueByText(Text: string): void;
+ }
+ export namespace Autocomplete {
+
+ export interface Model {
+
+ /** Customize "Add New" text (label) to be added in the autocomplete popup list for the entered text when there are no suggestions for it.
+ * @Default {Add New}
+ */
+ addNewText?: boolean;
+
+ /** Allows new values to be added to the autocomplete input other than the values in the suggestion list.
+ * Normally, when there are no suggestions it will display “No suggestions†label in the popup.
+ * @Default {false}
+ */
+ allowAddNew?: boolean;
+
+ /** Enables or disables the sorting of suggestion list item. The default sort order is ascending order. You customize sort order.
+ * @Default {true}
+ */
+ allowSorting?: boolean;
+
+ /** Enables or disables selecting the animation style for the popup list. Animation types can be selected through either of the following options,
+ * @Default {slide}
+ */
+ animateType?: ej.Autocomplete.Animation | string;
+
+ /** To focus the items in the suggestion list when the popup is shown. By default first item will be focused.
+ * @Default {false}
+ */
+ autoFocus?: boolean;
+
+ /** Enables or disables the case sensitive search.
+ * @Default {false}
+ */
+ caseSensitiveSearch?: boolean;
+
+ /** The root class for the Autocomplete textbox widget which helps in customizing its theme.
+ * @Default {â€â€}
+ */
+ cssClass?: string;
+
+ /** The data source contains the list of data for the suggestions list. It can be a string array or JSON array.
+ * @Default {null}
+ */
+ dataSource?: any | any[];
+
+ /** The time delay (in milliseconds) after which the suggestion popup will be shown.
+ * @Default {200}
+ */
+ delaySuggestionTimeout?: number;
+
+ /** The special character which acts as a separator for the given words for multi-mode search i.e. the text after the delimiter are considered as a separate word or query for search operation.
+ * @Default {’,’}
+ */
+ delimiterChar?: string;
+
+ /** The text to be displayed in the popup when there are no suggestions available for the entered text.
+ * @Default {“No suggestionsâ€}
+ */
+ emptyResultText?: string;
+
+ /** Fills the autocomplete textbox with the first matched item from the suggestion list automatically based on the entered text when enabled.
+ * @Default {false}
+ */
+ enableAutoFill?: boolean;
+
+ /** Enables or disables the Autocomplete textbox widget.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Enables or disables displaying the duplicate names present in the search result.
+ * @Default {false}
+ */
+ enableDistinct?: boolean;
+
+ /** Allows the current model values to be saved in local storage or browser cookies for state maintenance
+ * when it is set to true.
+ * While refreshing the page, it retains the model value from browser cookies or local storage.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Displays the Autocomplete widget’s content from right to left when enabled.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Mapping fields for the suggestion items of the Autocomplete textbox widget.
+ * @Default {null}
+ */
+ fields?: Fields;
+
+ /** Specifies the search filter type.
+ * There are several types of search filter available such as ‘startswith’,
+ * ‘contains’, ‘endswith’, ‘lessthan’, ‘lessthanorequal’, ‘greaterthan’,
+ * ‘greaterthanorequal’, ‘equal’, ‘notequal’.
+ * @Default {ej.filterType.StartsWith}
+ */
+ filterType?: string;
+
+ /** The height of the Autocomplete textbox.
+ * @Default {null}
+ */
+ height?: string | number;
+
+ /** The search text can be highlighted in the AutoComplete suggestion list when enabled.
+ * @Default {false}
+ */
+ highlightSearch?: boolean;
+
+ /** Number of items to be displayed in the suggestion list.
+ * @Default {0}
+ */
+ itemsCount?: number;
+
+ /** Set the localization culture for Autocomplete Widget.
+ */
+ locale?: string;
+
+ /** Minimum number of character to be entered in the Autocomplete textbox to show the suggestion list.
+ * @Default {1}
+ */
+ minCharacter?: number;
+
+ /** An Autocomplete column collection can be defined and customized through the multiColumnSettings property.Column's header, field, and stringFormat can be define
+ * via multiColumnSettings properties.
+ */
+ multiColumnSettings?: MultiColumnSettings;
+
+ /** Enables or disables selecting multiple values from the suggestion list. Multiple values can be selected through either of the following options,
+ * @Default {ej.MultiSelectMode.None}
+ */
+ multiSelectMode?: ej.Autocomplete.MultiSelectMode | string;
+
+ /** The height of the suggestion list.
+ * @Default {“152pxâ€}
+ */
+ popupHeight?: string;
+
+ /** The width of the suggestion list.
+ * @Default {“autoâ€}
+ */
+ popupWidth?: string;
+
+ /** The query to retrieve the data from the data source.
+ * @Default {null}
+ */
+ query?: ej.Query;
+
+ /** Indicates that the autocomplete textbox values can only be readable.
+ * @Default {false}
+ */
+ readOnly?: boolean;
+
+ /** Sets the value for the Autocomplete textbox based on the given input key value.
+ */
+ selectValueByKey?: number;
+
+ /** Enables or disables showing the message when there are no suggestions for the entered text.
+ * @Default {true}
+ */
+ showEmptyResultText?: boolean;
+
+ /** Enables or disables the loading icon to intimate the searching operation. The loading icon is visible when there is a time delay to perform the search.
+ * @Default {true}
+ */
+ showLoadingIcon?: boolean;
+
+ /** Enables the showPopup button in autocomplete textbox. When the showPopup button is clicked, it displays all the available data from the data source.
+ * @Default {false}
+ */
+ showPopupButton?: boolean;
+
+ /** Enables or disables rounded corner.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Enables or disables reset icon to clear the textbox values.
+ * @Default {false}
+ */
+ showResetIcon?: boolean;
+
+ /** Sort order specifies whether the suggestion list values has to be displayed in ascending or descending order.
+ * @Default {ej.SortOrder.Ascending}
+ */
+ sortOrder?: ej.Autocomplete.SortOrder | string;
+
+ /** The template to display the suggestion list items with customized appearance.
+ * @Default {null}
+ */
+ template?: string;
+
+ /** The jQuery validation error message to be displayed on form validation.
+ * @Default {null}
+ */
+ validationMessage?: any;
+
+ /** The jQuery validation rules for form validation.
+ * @Default {null}
+ */
+ validationRules?: any;
+
+ /** The value to be displayed in the autocomplete textbox.
+ * @Default {null}
+ */
+ value?: string;
+
+ /** Enables or disables the visibility of the autocomplete textbox.
+ * @Default {true}
+ */
+ visible?: boolean;
+
+ /** The text to be displayed when the value of the autocomplete textbox is empty.
+ * @Default {null}
+ */
+ watermarkText?: string;
+
+ /** The width of the Autocomplete textbox.
+ * @Default {null}
+ */
+ width?: string | number;
+
+ /** Triggers when the AJAX requests Begins. */
+ actionBegin?(e: ActionBeginEventArgs): void;
+
+ /** Triggers when the data requested from AJAX will get successfully loaded in the Autocomplete widget. */
+ actionSuccess?(e: ActionSuccessEventArgs): void;
+
+ /** Triggers when the AJAX requests complete. The request may get failed or succeed. */
+ actionComplete?(e: ActionCompleteEventArgs): void;
+
+ /** Triggers when the data requested from AJAX get failed. */
+ actionFailure?(e: ActionFailureEventArgs): void;
+
+ /** Triggers when the text box value is changed. */
+ change?(e: ChangeEventArgs): void;
+
+ /** Triggers after the suggestion popup is closed. */
+ close?(e: CloseEventArgs): void;
+
+ /** Triggers when Autocomplete widget is created. */
+ create?(e: CreateEventArgs): void;
+
+ /** Triggers after the Autocomplete widget is destroyed. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Triggers after the autocomplete textbox is focused. */
+ focusIn?(e: FocusInEventArgs): void;
+
+ /** Triggers after the Autocomplete textbox gets out of the focus. */
+ focusOut?(e: FocusOutEventArgs): void;
+
+ /** Triggers after the suggestion list is opened. */
+ open?(e: OpenEventArgs): void;
+
+ /** Triggers when an item has been selected from the suggestion list. */
+ select?(e: SelectEventArgs): void;
+ }
+
+ export interface ActionBeginEventArgs {
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+ }
+
+ export interface ActionSuccessEventArgs {
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+ }
-export interface ActionCompleteEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-}
+ export interface ActionCompleteEventArgs {
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+ }
-export interface ActionFailureEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-}
+ export interface ActionFailureEventArgs {
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+ }
-export interface ChangeEventArgs {
+ export interface ChangeEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the autocomplete model object.
- */
- model?: ej.Autocomplete.Model;
+ /** Instance of the autocomplete model object.
+ */
+ model?: ej.Autocomplete.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Value of the autocomplete textbox.
- */
- value?: string;
-}
+ /** Value of the autocomplete textbox.
+ */
+ value?: string;
+ }
-export interface CloseEventArgs {
+ export interface CloseEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the autocomplete model object.
- */
- model?: ej.Autocomplete.Model;
+ /** Instance of the autocomplete model object.
+ */
+ model?: ej.Autocomplete.Model;
- /** Name of the event.
- */
- type?: string;
-}
+ /** Name of the event.
+ */
+ type?: string;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the autocomplete model object.
- */
- model?: ej.Autocomplete.Model;
+ /** Instance of the autocomplete model object.
+ */
+ model?: ej.Autocomplete.Model;
- /** Name of the event.
- */
- type?: string;
-}
+ /** Name of the event.
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the autocomplete model object.
- */
- model?: ej.Autocomplete.Model;
+ /** Instance of the autocomplete model object.
+ */
+ model?: ej.Autocomplete.Model;
- /** Name of the event.
- */
- type?: string;
-}
+ /** Name of the event.
+ */
+ type?: string;
+ }
-export interface FocusInEventArgs {
+ export interface FocusInEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the autocomplete model object.
- */
- model?: ej.Autocomplete.Model;
+ /** Instance of the autocomplete model object.
+ */
+ model?: ej.Autocomplete.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Value of the autocomplete textbox.
- */
- value?: string;
-}
+ /** Value of the autocomplete textbox.
+ */
+ value?: string;
+ }
-export interface FocusOutEventArgs {
+ export interface FocusOutEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the autocomplete model object.
- */
- model?: ej.Autocomplete.Model;
+ /** Instance of the autocomplete model object.
+ */
+ model?: ej.Autocomplete.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Value of the autocomplete textbox.
- */
- value?: string;
-}
+ /** Value of the autocomplete textbox.
+ */
+ value?: string;
+ }
-export interface OpenEventArgs {
+ export interface OpenEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the autocomplete model object.
- */
- model?: ej.Autocomplete.Model;
+ /** Instance of the autocomplete model object.
+ */
+ model?: ej.Autocomplete.Model;
- /** Name of the event.
- */
- type?: string;
-}
+ /** Name of the event.
+ */
+ type?: string;
+ }
-export interface SelectEventArgs {
+ export interface SelectEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the autocomplete model object.
- */
- model?: ej.Autocomplete.Model;
+ /** Instance of the autocomplete model object.
+ */
+ model?: ej.Autocomplete.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Value of the autocomplete textbox.
- */
- value?: string;
+ /** Value of the autocomplete textbox.
+ */
+ value?: string;
- /** Text of the selected item.
- */
- text?: string;
+ /** Text of the selected item.
+ */
+ text?: string;
- /** Key of the selected item.
- */
- key?: string;
+ /** Key of the selected item.
+ */
+ key?: string;
- /** Data object of the selected item.
- */
- Item?: ej.Autocomplete.Model;
-}
+ /** Data object of the selected item.
+ */
+ Item?: ej.Autocomplete.Model;
+ }
-export interface Fields {
+ export interface Fields {
- /** Used to group the suggestion list items.
- */
- groupBy?: string;
+ /** Used to group the suggestion list items.
+ */
+ groupBy?: string;
- /** Defines the HTML attributes such as id, class, styles for the item.
- */
- htmlAttributes?: any;
+ /** Defines the HTML attributes such as id, class, styles for the item.
+ */
+ htmlAttributes?: any;
- /** Defines the specific field name which contains unique key values for the list items.
- */
- key?: string;
+ /** Defines the specific field name which contains unique key values for the list items.
+ */
+ key?: string;
- /** Defines the specific field name in the data source to load the suggestion list with data.
- */
- text?: string;
-}
+ /** Defines the specific field name in the data source to load the suggestion list with data.
+ */
+ text?: string;
+ }
-export interface MultiColumnSettingsColumn {
+ export interface MultiColumnSettingsColumn {
- /** Get or set a value that indicates to display the columns in the autocomplete mapping with column name of the dataSource.
- */
- field?: string;
+ /** Get or set a value that indicates to display the columns in the autocomplete mapping with column name of the dataSource.
+ */
+ field?: string;
- /** Get or set a value that indicates to display the title of that particular column.
- */
- headerText?: string;
+ /** Get or set a value that indicates to display the title of that particular column.
+ */
+ headerText?: string;
- /** Gets or sets a value that indicates to render the multicolumn with custom theme.
- */
- cssClass?: string;
+ /** Gets or sets a value that indicates to render the multicolumn with custom theme.
+ */
+ cssClass?: string;
- /** Specifies the search data type. There are four types of data types available such as string, ‘number’, ‘boolean’ and ‘date’.
- * @Default {ej.Type.String}
- */
- type?: ej.Type|string;
+ /** Specifies the search data type. There are four types of data types available such as string, ‘number’, ‘boolean’ and ‘date’.
+ * @Default {ej.Type.String}
+ */
+ type?: ej.Type | string;
- /** Specifies the search filter type. There are several types of search filter available such as ‘startswith’,
- * ‘contains’, ‘endswith’, ‘lessthan’, ‘lessthanorequal’, ‘greaterthan’,
- * ‘greaterthanorequal’, ‘equal’, ‘notequal’.
- * @Default {ej.filterType.StartsWith}
- */
- filterType?: ej.filterType|string;
+ /** Specifies the search filter type. There are several types of search filter available such as ‘startswith’,
+ * ‘contains’, ‘endswith’, ‘lessthan’, ‘lessthanorequal’, ‘greaterthan’,
+ * ‘greaterthanorequal’, ‘equal’, ‘notequal’.
+ * @Default {ej.filterType.StartsWith}
+ */
+ filterType?: ej.filterType | string;
- /** This defines the text alignment of a particular column header cell value. See headerTextAlign
- * @Default {ej.TextAlign.Left}
- */
- headerTextAlign?: ej.TextAlign|string;
+ /** This defines the text alignment of a particular column header cell value. See headerTextAlign
+ * @Default {ej.TextAlign.Left}
+ */
+ headerTextAlign?: ej.TextAlign | string;
- /** Gets or sets a value that indicates to align the text within the column. See textAlign
- * @Default {ej.TextAlign.Left}
- */
- textAlign?: ej.TextAlign|string;
-}
+ /** Gets or sets a value that indicates to align the text within the column. See textAlign
+ * @Default {ej.TextAlign.Left}
+ */
+ textAlign?: ej.TextAlign | string;
+ }
-export interface MultiColumnSettings {
+ export interface MultiColumnSettings {
- /** Allow list of data to be displayed in several columns.
- * @Default {false}
- */
- enable?: boolean;
+ /** Allow list of data to be displayed in several columns.
+ * @Default {false}
+ */
+ enable?: boolean;
- /** Allow header text to be displayed in corresponding columns.
- * @Default {true}
- */
- showHeader?: boolean;
+ /** Allow header text to be displayed in corresponding columns.
+ * @Default {true}
+ */
+ showHeader?: boolean;
- /** Displayed selected value and autocomplete search based on mentioned column value specified in that format.
- */
- stringFormat?: string;
-
- /** Field and Header Text collections can be defined and customized through columns field.
- */
- columns?: MultiColumnSettingsColumn[];
-}
-
-enum Animation {
+ /** Displayed selected value and autocomplete search based on mentioned column value specified in that format.
+ */
+ stringFormat?: string;
+
+ /** Field and Header Text collections can be defined and customized through columns field.
+ */
+ columns?: MultiColumnSettingsColumn[];
+ }
+
+ enum Animation {
- ///Supports to animation type with none type only.
- None,
-
- ///Supports to animation type with slide type only.
- Slide,
-
- ///Supports to animation type with fade type only.
- Fade
-}
-
-
-enum MultiSelectMode {
-
- ///Multiple values are separated using a given special character.
- Delimiter,
-
- ///Each values are displayed in separate box with close button.
- VisualMode
-}
-
-
-enum SortOrder {
-
- ///Items to be displayed in the suggestion list in ascending order.
- Ascending,
-
- ///Items to be displayed in the suggestion list in descending order.
- Descending
-}
-
-}
-
-class Button extends ej.Widget {
- static fn: Button;
- constructor(element: JQuery | Element, options?: Button.Model);
- static Locale: any;
- model: Button.Model;
- defaults: Button.Model;
-
- /** destroy the button widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
- * @returns {void}
- */
- destroy(): void;
-
- /** To disable the button
- * @returns {void}
- */
- disable(): void;
-
- /** To enable the button
- * @returns {void}
- */
- enable(): void;
-}
-export namespace Button {
-
-export interface Model {
-
- /** Specifies the contentType of the Button. See below to know available ContentType
- * @Default {ej.ContentType.TextOnly}
- */
- contentType?: ej.ContentType|string;
-
- /** Sets the root CSS class for Button theme, which is used customize.
- */
- cssClass?: string;
-
- /** Specifies the button control state.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Specify the Right to Left direction to button
- * @Default {false}
- */
- enableRTL?: boolean;
+ ///Supports to animation type with none type only.
+ None,
+
+ ///Supports to animation type with slide type only.
+ Slide,
+
+ ///Supports to animation type with fade type only.
+ Fade
+ }
+
+
+ enum MultiSelectMode {
+
+ ///Multiple values are separated using a given special character.
+ Delimiter,
+
+ ///Each values are displayed in separate box with close button.
+ VisualMode
+ }
+
+
+ enum SortOrder {
+
+ ///Items to be displayed in the suggestion list in ascending order.
+ Ascending,
+
+ ///Items to be displayed in the suggestion list in descending order.
+ Descending
+ }
+
+ }
+
+ class Button extends ej.Widget {
+ static fn: Button;
+ constructor(element: JQuery | Element, options?: Button.Model);
+ static Locale: any;
+ model: Button.Model;
+ defaults: Button.Model;
+
+ /** destroy the button widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** To disable the button
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** To enable the button
+ * @returns {void}
+ */
+ enable(): void;
+ }
+ export namespace Button {
+
+ export interface Model {
+
+ /** Specifies the contentType of the Button. See below to know available ContentType
+ * @Default {ej.ContentType.TextOnly}
+ */
+ contentType?: ej.ContentType | string;
+
+ /** Sets the root CSS class for Button theme, which is used customize.
+ */
+ cssClass?: string;
+
+ /** Specifies the button control state.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Specify the Right to Left direction to button
+ * @Default {false}
+ */
+ enableRTL?: boolean;
- /** Specifies the height of the Button.
- * @Default {28}
- */
- height?: number;
-
- /** It allows to define the characteristics of the Button control. It will helps to extend the capability of an HTML element.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Specifies the image position of the Button. This image position is applicable
- * only with the textandimage contentType property. The images can be positioned in both
- * imageLeft and imageRight options. See below to know about available ImagePosition
- * @Default {ej.ImagePosition.ImageLeft}
- */
- imagePosition?: ej.ImagePosition|string;
-
- /** Specifies the primary icon for Button. This icon will be displayed from the left margin of the button.
- * @Default {null}
- */
- prefixIcon?: string;
-
- /** Convert the button as repeat button. It raises the 'Click' event repeatedly from the it is pressed until it is released.
- * @Default {false}
- */
- repeatButton?: boolean;
-
- /** Displays the Button with rounded corners.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Specifies the size of the Button. See below to know available ButtonSize
- * @Default {ej.ButtonSize.Normal}
- */
- size?: ej.ButtonSize|string;
-
- /** Specifies the secondary icon for Button. This icon will be displayed from the right margin of the button.
- * @Default {null}
- */
- suffixIcon?: string;
-
- /** Specifies the text content for Button.
- * @Default {null}
- */
- text?: string;
-
- /** Specified the time interval between two consecutive 'click' event on the button.
- * @Default {150}
- */
- timeInterval?: string;
-
- /** Specifies the Type of the Button. See below to know available ButtonType
- * @Default {ej.ButtonType.Submit}
- */
- type?: ej.ButtonType|string;
-
- /** Specifies the width of the Button.
- * @Default {100px}
- */
- width?: string|number;
-
- /** Fires when Button control is clicked successfully.Consider the scenario to perform any validation,
- * modification of content or any other operations click on button,we can make use of this click event
- * to achieve the scenario.
- */
- click?(e: ClickEventArgs): void;
-
- /** Fires after Button control is created.If the user want to perform any operation after the button control creation then the user can make use of this create event. */
- create?(e: CreateEventArgs): void;
-
- /** Fires when the button is destroyed successfully.If the user want to perform any operation after the destroy button control then the user can make use of this destroy event. */
- destroy?(e: DestroyEventArgs): void;
-}
-
-export interface ClickEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the button model
- */
- model?: ej.Button.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** return the button state
- */
- status?: boolean;
-
- /** return the event model for sever side processing.
- */
- e?: any;
-}
-
-export interface CreateEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the button model
- */
- model?: ej.Button.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface DestroyEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the button model
- */
- model?: ej.Button.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-}
-enum ContentType {
-//To display the text content only in button
-TextOnly,
-//To display the image only in button
-ImageOnly,
-//Supports to display image for both ends of the button
-ImageBoth,
-//Supports to display image with the text content
-TextAndImage,
-//Supports to display image with both ends of the text
-ImageTextImage,
-}
-enum ImagePosition {
-//support for aligning text in left and image in right
-ImageRight,
-//support for aligning text in right and image in left
-ImageLeft,
-//support for aligning text in bottom and image in top.
-ImageTop,
-//support for aligning text in top and image in bottom
-ImageBottom,
-}
-enum ButtonSize {
-//Creates button with Built-in default size height, width specified
-Normal,
-//Creates button with Built-in mini size height, width specified
-Mini,
-//Creates button with Built-in small size height, width specified
-Small,
-//Creates button with Built-in medium size height, width specified
-Medium,
-//Creates button with Built-in large size height, width specified
-Large,
-}
-enum ButtonType {
-//Creates button with Built-in button type specified
-Button,
-//Creates button with Built-in reset type specified
-Reset,
-//Creates button with Built-in submit type specified
-Submit,
-}
-
-class Captcha extends ej.Widget {
- static fn: Captcha;
- constructor(element: JQuery | Element, options?: Captcha.Model);
- static Locale: any;
- model: Captcha.Model;
- defaults: Captcha.Model;
-}
-export namespace Captcha {
-
-export interface Model {
-
- /** Specifies the character set of the Captcha that will be used to generate captcha text randomly.
- */
- characterSet?: string;
-
- /** Specifies the error message to be displayed when the Captcha mismatch.
- */
- customErrorMessage?: string;
-
- /** Set the Captcha validation automatically.
- */
- enableAutoValidation?: boolean;
-
- /** Specifies the case sensitivity for the characters typed in the Captcha.
- */
- enableCaseSensitivity?: boolean;
-
- /** Specifies the background patterns for the Captcha.
- */
- enablePattern?: boolean;
-
- /** Sets the Captcha direction as right to left alignment.
- */
- enableRTL?: boolean;
-
- /** Specifies the background appearance for the captcha.
- */
- hatchStyle?: ej.HatchStyle|string;
-
- /** Specifies the height of the Captcha.
- */
- height?: number;
-
- /** Specifies the method with values to be mapped in the Captcha.
- */
- mapper?: string;
-
- /** Specifies the maximum number of characters used in the Captcha.
- */
- maximumLength?: number;
-
- /** Specifies the minimum number of characters used in the Captcha.
- */
- minimumLength?: number;
-
- /** Specifies the method to map values to Captcha.
- */
- requestMapper?: string;
-
- /** Sets the Captcha with audio support, that enables to dictate the captcha text.
- */
- showAudioButton?: boolean;
-
- /** Sets the Captcha with a refresh button.
- */
- showRefreshButton?: boolean;
-
- /** Specifies the target button of the Captcha to validate the entered text and captcha text.
- */
- targetButton?: string;
-
- /** Specifies the target input element that will verify the Captcha.
- */
- targetInput?: string;
-
- /** Specifies the width of the Captcha.
- */
- width?: number;
-
- /** Fires when captcha refresh begins. */
- refreshBegin?(e: RefreshBeginEventArgs): void;
-
- /** Fires after captcha refresh completed. */
- refreshComplete?(e: RefreshCompleteEventArgs): void;
-
- /** Fires when captcha refresh fails to load. */
- refreshFailure?(e: RefreshFailureEventArgs): void;
-
- /** Fires after captcha refresh succeeded. */
- refreshSuccess?(e: RefreshSuccessEventArgs): void;
-}
-
-export interface RefreshBeginEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the Captcha model
- */
- model?: any;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface RefreshCompleteEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the Captcha model
- */
- model?: any;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface RefreshFailureEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the Captcha model
- */
- model?: any;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface RefreshSuccessEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the Captcha model
- */
- model?: any;
-
- /** returns the name of the event
- */
- type?: string;
-}
-}
-enum HatchStyle {
-//Set background as None to Captcha
-None,
-//Set background as BackwardDiagonal to Captcha
-BackwardDiagonal,
-//Set background as Cross to Captcha
-Cross,
-//Set background as DarkDownwardDiagonal to Captcha
-DarkDownwardDiagonal,
-//Set background as DarkHorizontal to Captcha
-DarkHorizontal,
-//Set background as DarkUpwardDiagonal to Captcha
-DarkUpwardDiagonal,
-//Set background as DarkVertical to Captcha
-DarkVertical,
-//Set background as DashedDownwardDiagonal to Captcha
-DashedDownwardDiagonal,
-//Set background as DashedHorizontal to Captcha
-DashedHorizontal,
-//Set background as DashedUpwardDiagonal to Captcha
-DashedUpwardDiagonal,
-//Set background as DashedVertical to Captcha
-DashedVertical,
-//Set background as DiagonalBrick to Captcha
-DiagonalBrick,
-//Set background as DiagonalCross to Captcha
-DiagonalCross,
-//Set background as Divot to Captcha
-Divot,
-//Set background as DottedDiamond to Captcha
-DottedDiamond,
-//Set background as DottedGrid to Captcha
-DottedGrid,
-//Set background as ForwardDiagonal to Captcha
-ForwardDiagonal,
-//Set background as Horizontal to Captcha
-Horizontal,
-//Set background as HorizontalBrick to Captcha
-HorizontalBrick,
-//Set background as LargeCheckerBoard to Captcha
-LargeCheckerBoard,
-//Set background as LargeConfetti to Captcha
-LargeConfetti,
-//Set background as LargeGrid to Captcha
-LargeGrid,
-//Set background as LightDownwardDiagonal to Captcha
-LightDownwardDiagonal,
-//Set background as LightHorizontal to Captcha
-LightHorizontal,
-//Set background as LightUpwardDiagonal to Captcha
-LightUpwardDiagonal,
-//Set background as LightVertical to Captcha
-LightVertical,
-//Set background as Max to Captcha
-Max,
-//Set background as Min to Captcha
-Min,
-//Set background as NarrowHorizontal to Captcha
-NarrowHorizontal,
-//Set background as NarrowVertical to Captcha
-NarrowVertical,
-//Set background as OutlinedDiamond to Captcha
-OutlinedDiamond,
-//Set background as Percent90 to Captcha
-Percent90,
-//Set background as Wave to Captcha
-Wave,
-//Set background as Weave to Captcha
-Weave,
-//Set background as WideDownwardDiagonal to Captcha
-WideDownwardDiagonal,
-//Set background as WideUpwardDiagonal to Captcha
-WideUpwardDiagonal,
-//Set background as ZigZag to Captcha
-ZigZag,
-}
-
-class ListBox extends ej.Widget {
- static fn: ListBox;
- constructor(element: JQuery | Element, options?: ListBox.Model);
- static Locale: any;
- model: ListBox.Model;
- defaults: ListBox.Model;
-
- /** Adds a given list items in the ListBox widget at a specified index. It accepts two parameters.
- * @param {any|string} This can be a list item object (for JSON binding) or a string (for UL and LI rendering).
- * Also we can the specify this as an array of list item object or an array of strings to add multiple items.
- * @param {number} The index value to add the given items at the specified index. If index is not specified, the given items will be added at the end of the list.
- * @returns {void}
- */
- addItem(listItem: any|string, index: number): void;
-
- /** Checks all the list items in the ListBox widget. It is dependent on showCheckbox property.
- * @returns {void}
- */
- checkAll(): void;
-
- /** Checks a list item by using its index. It is dependent on showCheckbox property.
- * @param {number} Index of the listbox item to be checked. If index is not specified, the given items will be added at the end of the list.
- * @returns {void}
- */
- checkItemByIndex(index: number): void;
-
- /** Checks multiple list items by using its index values. It is dependent on showCheckbox property.
- * @param {number[]} Index/Indices of the listbox items to be checked. If index is not specified, the given items will be added at the end of the list.
- * @returns {void}
- */
- checkItemsByIndices(indices: number[]): void;
-
- /** Disables the ListBox widget.
- * @returns {void}
- */
- disable(): void;
-
- /** Disables a list item by passing the item text as parameter.
- * @param {string} Text of the listbox item to be disabled.
- * @returns {void}
- */
- disableItem(text: string): void;
-
- /** Disables a list Item using its index value.
- * @param {number} Index of the listbox item to be disabled.
- * @returns {void}
- */
- disableItemByIndex(index: number): void;
-
- /** Disables set of list Items using its index values.
- * @param {number[]|string} Indices of the listbox items to be disabled.
- * @returns {void}
- */
- disableItemsByIndices(Indices: number[]|string): void;
-
- /** Enables the ListBox widget when it is disabled.
- * @returns {void}
- */
- enable(): void;
-
- /** Enables a list Item using its item text value.
- * @param {string} Text of the listbox item to be enabled.
- * @returns {void}
- */
- enableItem(text: string): void;
-
- /** Enables a list item using its index value.
- * @param {number} Index of the listbox item to be enabled.
- * @returns {void}
- */
- enableItemByIndex(index: number): void;
-
- /** Enables a set of list Items using its index values.
- * @param {number[]|string} Indices of the listbox items to be enabled.
- * @returns {void}
- */
- enableItemsByIndices(indices: number[]|string): void;
-
- /** Returns the list of checked items in the ListBox widget. It is dependent on showCheckbox property.
- * @returns {any}
- */
- getCheckedItems(): any;
-
- /** Returns the list of selected items in the ListBox widget.
- * @returns {any}
- */
- getSelectedItems(): any;
-
- /** Returns an item’s index based on the given text.
- * @param {string} The list item text (label)
- * @returns {number}
- */
- getIndexByText(text: string): number;
-
- /** Returns an item’s index based on the value given.
- * @param {string} The list item’s value
- * @returns {number}
- */
- getIndexByValue(indices: string): number;
-
- /** Returns an item’s text (label) based on the index given.
- * @returns {string}
- */
- getTextByIndex(): string;
-
- /** Returns a list item’s object using its index.
- * @returns {any}
- */
- getItemByIndex(): any;
-
- /** Returns a list item’s object based on the text given.
- * @param {string} The list item text.
- * @returns {any}
- */
- getItemByText(text: string): any;
-
- /** Merges the given data with the existing data items in the listbox.
- * @param {Array} Data to merge in listbox.
- * @returns {void}
- */
- mergeData(data: any[]): void;
-
- /** Selects the next item based on the current selection.
- * @returns {void}
- */
- moveDown(): void;
-
- /** Selects the previous item based on the current selection.
- * @returns {void}
- */
- moveUp(): void;
-
- /** Refreshes the ListBox widget.
- * @param {boolean} Refreshes both the datasource and the dimensions of the ListBox widget when the parameter is passed as true, otherwise only the ListBox dimensions will be refreshed.
- * @returns {void}
- */
- refresh(refreshData: boolean): void;
-
- /** Removes all the list items from listbox.
- * @returns {void}
- */
- removeAll(): void;
-
- /** Removes the selected list items from the listbox.
- * @returns {void}
- */
- removeSelectedItems(): void;
-
- /** Removes a list item by using its text.
- * @param {string} Text of the listbox item to be removed.
- * @returns {void}
- */
- removeItemByText(text: string): void;
-
- /** Removes a list item by using its index value.
- * @param {number} Index of the listbox item to be removed.
- * @returns {void}
- */
- removeItemByIndex(index: number): void;
-
- /**
- * @returns {void}
- */
- selectAll(): void;
-
- /** Selects the list item using its text value.
- * @param {string} Text of the listbox item to be selected.
- * @returns {void}
- */
- selectItemByText(text: string): void;
-
- /** Selects list item using its value property.
- * @param {string} Value of the listbox item to be selected.
- * @returns {void}
- */
- selectItemByValue(value: string): void;
-
- /** Selects list item using its index value.
- * @param {number} Index of the listbox item to be selected.
- * @returns {void}
- */
- selectItemByIndex(index: number): void;
-
- /** Selects a set of list items through its index values.
- * @param {number|number[]} Index/Indices of the listbox item to be selected.
- * @returns {void}
- */
- selectItemsByIndices(Indices: number|number[]): void;
-
- /** Unchecks all the checked list items in the ListBox widget. To use this method showCheckbox property to be set as true.
- * @returns {void}
- */
- uncheckAll(): void;
-
- /** Unchecks a checked list item using its index value. To use this method showCheckbox property to be set as true.
- * @param {number} Index of the listbox item to be unchecked.
- * @returns {void}
- */
- uncheckItemByIndex(index: number): void;
-
- /** Unchecks the set of checked list items using its index values. To use this method showCheckbox property must be set to true.
- * @param {number[]|string} Indices of the listbox item to be unchecked.
- * @returns {void}
- */
- uncheckItemsByIndices(indices: number[]|string): void;
-
- /**
- * @returns {void}
- */
- unselectAll(): void;
-
- /** Unselects a selected list item using its index value
- * @param {number} Index of the listbox item to be unselected.
- * @returns {void}
- */
- unselectItemByIndex(index: number): void;
-
- /** Unselects a selected list item using its text value.
- * @param {string} Text of the listbox item to be unselected.
- * @returns {void}
- */
- unselectItemByText(text: string): void;
-
- /** Unselects a selected list item using its value.
- * @param {string} Value of the listbox item to be unselected.
- * @returns {void}
- */
- unselectItemByValue(value: string): void;
-
- /** Unselects a set of list items using its index values.
- * @param {number[]|string} Indices of the listbox item to be unselected.
- * @returns {void}
- */
- unselectItemsByIndices(indices: number[]|string): void;
-
- /** Hides all the checked items in the listbox.
- * @returns {void}
- */
- hideCheckedItems(): void;
-
- /** Shows a set of hidden list Items using its index values.
- * @param {number[]|string} Indices of the listbox items to be shown.
- * @returns {void}
- */
- showItemByIndices(indices: number[]|string): void;
-
- /** Hides a set of list Items using its index values.
- * @param {number[]|string} Indices of the listbox items to be hidden.
- * @returns {void}
- */
- hideItemsByIndices(indices: number[]|string): void;
-
- /** Shows the hidden list items using its values.
- * @param {Array} Values of the listbox items to be shown.
- * @returns {void}
- */
- showItemsByValues(values: any[]): void;
-
- /** Hides the list item using its values.
- * @param {Array} Values of the listbox items to be hidden.
- * @returns {void}
- */
- hideItemsByValues(values: any[]): void;
-
- /** Shows a hidden list item using its value.
- * @param {string} Value of the listbox item to be shown.
- * @returns {void}
- */
- showItemByValue(value: string): void;
-
- /** Hide a list item using its value.
- * @param {string} Value of the listbox item to be hidden.
- * @returns {void}
- */
- hideItemByValue(value: string): void;
-
- /** Shows a hidden list item using its index value.
- * @param {number} Index of the listbox item to be shown.
- * @returns {void}
- */
- showItemByIndex(index: number): void;
-
- /** Hides a list item using its index value.
- * @param {number} Index of the listbox item to be hidden.
- * @returns {void}
- */
- hideItemByIndex(index: number): void;
-
- /**
- * @returns {void}
- */
- show(): void;
-
- /** Hides the listbox.
- * @returns {void}
- */
- hide(): void;
-
- /** Hides all the listbox items in the listbox.
- * @returns {void}
- */
- hideAllItems(): void;
-
- /** Shows all the listbox items in the listbox.
- * @returns {void}
- */
- showAllItems(): void;
-}
-export namespace ListBox {
-
-export interface Model {
-
- /** Enables/disables the dragging behavior of the items in ListBox widget.
- * @Default {false}
- */
- allowDrag?: boolean;
-
- /** Accepts the items which are dropped in to it, when it is set to true.
- * @Default {false}
- */
- allowDrop?: boolean;
-
- /** Enables or disables multiple selection.
- * @Default {false}
- */
- allowMultiSelection?: boolean;
-
- /** Loads the list data on demand via scrolling behavior to improve the application’s performance. There are two ways to load data which can be defined using “virtualScrollMode” property.
- * @Default {false}
- */
- allowVirtualScrolling?: boolean;
-
- /** Enables or disables the case sensitive search for list item by typing the text (search) value.
- * @Default {false}
- */
- caseSensitiveSearch?: boolean;
-
- /** Dynamically populate data of a list box while selecting an item in another list box i.e.
- * rendering child list box based on the item selection in parent list box.
- * This property accepts the id of the child ListBox widget to populate the data.
- * @Default {null}
- */
- cascadeTo?: string;
-
- /** Set of list items to be checked by default using its index. It works only when the showCheckbox property is set to true.
- * @Default {null}
- */
- checkedIndices?: any[];
-
- /** The root class for the ListBox widget to customize the existing theme.
- * @Default {“”}
- */
- cssClass?: string;
-
- /** Contains the list of data for generating the list items.
- * @Default {null}
- */
- dataSource?: any;
-
- /** Enables or disables the ListBox widget.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Enables or disables the search behavior to find the specific list item by typing the text value.
- * @Default {false}
- */
- enableIncrementalSearch?: boolean;
-
- /** Allows the current model values to be saved in local storage or browser cookies for state maintenance when it is set to true.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Displays the ListBox widget’s content from right to left when enabled.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Specifies ellipsis ("...") representation in an overflowed list item content when it is set to false.
- * @Default {true}
- */
- enableWordWrap?: boolean;
-
- /** Mapping fields for the data items of the ListBox widget.
- * @Default {null}
- */
- fields?: Fields;
-
- /** Defines the height of the ListBox widget.
- * @Default {null}
- */
- height?: string;
-
- /** Defines the height for individual ListBox item.
- * @Default {null}
- */
- itemHeight?: string;
-
- /** The number of list items to be shown in the ListBox widget. The remaining list items will be scrollable.
- * @Default {null}
- */
- itemsCount?: number;
-
- /** The total number of list items to be rendered in the ListBox widget.
- * @Default {null}
- */
- totalItemsCount?: number;
-
- /** The number of list items to be loaded in the list box while enabling virtual scrolling and when virtualScrollMode is set to continuous.
- * @Default {5}
- */
- itemRequestCount?: number;
-
- /** Loads data for the listbox by default (i.e. on initialization) when it is set to true. It creates empty ListBox if it is set to false.
- */
- loadDataOnInit?: boolean;
-
- /** The query to retrieve required data from the data source.
- * @Default {ej.Query()}
- */
- query?: ej.Query;
-
- /** The list item to be selected by default using its index.
- * @Default {null}
- */
- selectedIndex?: number;
-
- /** The list items to be selected by default using its indices. To use this property allowMultiSelection should be enabled.
- * @Default {[]}
- */
- selectedIndices?: any[];
-
- /** Enables/Disables the multi selection option with the help of checkbox control.
- * @Default {false}
- */
- showCheckbox?: boolean;
-
- /** To display the ListBox container with rounded corners.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** The template to display the ListBox widget with customized appearance.
- * @Default {null}
- */
- template?: string;
-
- /** Holds the selected items values and used to bind value to the list item using AngularJS and KnockoutJS.
- * @Default {“”}
- */
- value?: number;
-
- /** Specifies the virtual scroll mode to load the list data on demand via scrolling behavior. There are two types of mode.
- */
- virtualScrollMode?: ej.VirtualScrollMode|string;
-
- /** Defines the width of the ListBox widget.
- * @Default {null}
- */
- width?: string;
-
- /** Specifies the targetID for the listbox items.
- */
- targetID?: string;
-
- /** Triggers before the AJAX request begins to load data in the ListBox widget. */
- actionBegin?(e: ActionBeginEventArgs): void;
-
- /** Triggers after the data requested via AJAX is successfully loaded in the ListBox widget. */
- actionSuccess?(e: ActionSuccessEventArgs): void;
-
- /** Triggers when the AJAX requests complete. The request may get failed or succeed. */
- actionComplete?(e: ActionCompleteEventArgs): void;
-
- /** Triggers when the data requested from AJAX get failed. */
- actionFailure?(e: ActionFailureEventArgs): void;
-
- /** Event will be triggered before the requested data via AJAX once loaded in successfully. */
- actionBeforeSuccess?(e: ActionBeforeSuccessEventArgs): void;
-
- /** Triggers when the item selection is changed. */
- change?(e: ChangeEventArgs): void;
+ /** Specifies the height of the Button.
+ * @Default {28}
+ */
+ height?: number;
+
+ /** It allows to define the characteristics of the Button control. It will helps to extend the capability of an HTML element.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Specifies the image position of the Button. This image position is applicable
+ * only with the textandimage contentType property. The images can be positioned in both
+ * imageLeft and imageRight options. See below to know about available ImagePosition
+ * @Default {ej.ImagePosition.ImageLeft}
+ */
+ imagePosition?: ej.ImagePosition | string;
+
+ /** Specifies the primary icon for Button. This icon will be displayed from the left margin of the button.
+ * @Default {null}
+ */
+ prefixIcon?: string;
+
+ /** Convert the button as repeat button. It raises the 'Click' event repeatedly from the it is pressed until it is released.
+ * @Default {false}
+ */
+ repeatButton?: boolean;
+
+ /** Displays the Button with rounded corners.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Specifies the size of the Button. See below to know available ButtonSize
+ * @Default {ej.ButtonSize.Normal}
+ */
+ size?: ej.ButtonSize | string;
+
+ /** Specifies the secondary icon for Button. This icon will be displayed from the right margin of the button.
+ * @Default {null}
+ */
+ suffixIcon?: string;
+
+ /** Specifies the text content for Button.
+ * @Default {null}
+ */
+ text?: string;
+
+ /** Specified the time interval between two consecutive 'click' event on the button.
+ * @Default {150}
+ */
+ timeInterval?: string;
+
+ /** Specifies the Type of the Button. See below to know available ButtonType
+ * @Default {ej.ButtonType.Submit}
+ */
+ type?: ej.ButtonType | string;
+
+ /** Specifies the width of the Button.
+ * @Default {100px}
+ */
+ width?: string | number;
+
+ /** Fires when Button control is clicked successfully.Consider the scenario to perform any validation,
+ * modification of content or any other operations click on button,we can make use of this click event
+ * to achieve the scenario.
+ */
+ click?(e: ClickEventArgs): void;
+
+ /** Fires after Button control is created.If the user want to perform any operation after the button control creation then the user can make use of this create event. */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when the button is destroyed successfully.If the user want to perform any operation after the destroy button control then the user can make use of this destroy event. */
+ destroy?(e: DestroyEventArgs): void;
+ }
+
+ export interface ClickEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the button model
+ */
+ model?: ej.Button.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** return the button state
+ */
+ status?: boolean;
+
+ /** return the event model for sever side processing.
+ */
+ e?: any;
+ }
+
+ export interface CreateEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the button model
+ */
+ model?: ej.Button.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the button model
+ */
+ model?: ej.Button.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+ }
+ enum ContentType {
+ //To display the text content only in button
+ TextOnly,
+ //To display the image only in button
+ ImageOnly,
+ //Supports to display image for both ends of the button
+ ImageBoth,
+ //Supports to display image with the text content
+ TextAndImage,
+ //Supports to display image with both ends of the text
+ ImageTextImage,
+ }
+ enum ImagePosition {
+ //support for aligning text in left and image in right
+ ImageRight,
+ //support for aligning text in right and image in left
+ ImageLeft,
+ //support for aligning text in bottom and image in top.
+ ImageTop,
+ //support for aligning text in top and image in bottom
+ ImageBottom,
+ }
+ enum ButtonSize {
+ //Creates button with Built-in default size height, width specified
+ Normal,
+ //Creates button with Built-in mini size height, width specified
+ Mini,
+ //Creates button with Built-in small size height, width specified
+ Small,
+ //Creates button with Built-in medium size height, width specified
+ Medium,
+ //Creates button with Built-in large size height, width specified
+ Large,
+ }
+ enum ButtonType {
+ //Creates button with Built-in button type specified
+ Button,
+ //Creates button with Built-in reset type specified
+ Reset,
+ //Creates button with Built-in submit type specified
+ Submit,
+ }
+
+ class Captcha extends ej.Widget {
+ static fn: Captcha;
+ constructor(element: JQuery | Element, options?: Captcha.Model);
+ static Locale: any;
+ model: Captcha.Model;
+ defaults: Captcha.Model;
+ }
+ export namespace Captcha {
+
+ export interface Model {
+
+ /** Specifies the character set of the Captcha that will be used to generate captcha text randomly.
+ */
+ characterSet?: string;
+
+ /** Specifies the error message to be displayed when the Captcha mismatch.
+ */
+ customErrorMessage?: string;
+
+ /** Set the Captcha validation automatically.
+ */
+ enableAutoValidation?: boolean;
+
+ /** Specifies the case sensitivity for the characters typed in the Captcha.
+ */
+ enableCaseSensitivity?: boolean;
+
+ /** Specifies the background patterns for the Captcha.
+ */
+ enablePattern?: boolean;
+
+ /** Sets the Captcha direction as right to left alignment.
+ */
+ enableRTL?: boolean;
+
+ /** Specifies the background appearance for the captcha.
+ */
+ hatchStyle?: ej.HatchStyle | string;
+
+ /** Specifies the height of the Captcha.
+ */
+ height?: number;
+
+ /** Specifies the method with values to be mapped in the Captcha.
+ */
+ mapper?: string;
+
+ /** Specifies the maximum number of characters used in the Captcha.
+ */
+ maximumLength?: number;
+
+ /** Specifies the minimum number of characters used in the Captcha.
+ */
+ minimumLength?: number;
+
+ /** Specifies the method to map values to Captcha.
+ */
+ requestMapper?: string;
+
+ /** Sets the Captcha with audio support, that enables to dictate the captcha text.
+ */
+ showAudioButton?: boolean;
+
+ /** Sets the Captcha with a refresh button.
+ */
+ showRefreshButton?: boolean;
+
+ /** Specifies the target button of the Captcha to validate the entered text and captcha text.
+ */
+ targetButton?: string;
+
+ /** Specifies the target input element that will verify the Captcha.
+ */
+ targetInput?: string;
+
+ /** Specifies the width of the Captcha.
+ */
+ width?: number;
+
+ /** Fires when captcha refresh begins. */
+ refreshBegin?(e: RefreshBeginEventArgs): void;
+
+ /** Fires after captcha refresh completed. */
+ refreshComplete?(e: RefreshCompleteEventArgs): void;
+
+ /** Fires when captcha refresh fails to load. */
+ refreshFailure?(e: RefreshFailureEventArgs): void;
+
+ /** Fires after captcha refresh succeeded. */
+ refreshSuccess?(e: RefreshSuccessEventArgs): void;
+ }
+
+ export interface RefreshBeginEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the Captcha model
+ */
+ model?: any;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface RefreshCompleteEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the Captcha model
+ */
+ model?: any;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface RefreshFailureEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the Captcha model
+ */
+ model?: any;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface RefreshSuccessEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the Captcha model
+ */
+ model?: any;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+ }
+ enum HatchStyle {
+ //Set background as None to Captcha
+ None,
+ //Set background as BackwardDiagonal to Captcha
+ BackwardDiagonal,
+ //Set background as Cross to Captcha
+ Cross,
+ //Set background as DarkDownwardDiagonal to Captcha
+ DarkDownwardDiagonal,
+ //Set background as DarkHorizontal to Captcha
+ DarkHorizontal,
+ //Set background as DarkUpwardDiagonal to Captcha
+ DarkUpwardDiagonal,
+ //Set background as DarkVertical to Captcha
+ DarkVertical,
+ //Set background as DashedDownwardDiagonal to Captcha
+ DashedDownwardDiagonal,
+ //Set background as DashedHorizontal to Captcha
+ DashedHorizontal,
+ //Set background as DashedUpwardDiagonal to Captcha
+ DashedUpwardDiagonal,
+ //Set background as DashedVertical to Captcha
+ DashedVertical,
+ //Set background as DiagonalBrick to Captcha
+ DiagonalBrick,
+ //Set background as DiagonalCross to Captcha
+ DiagonalCross,
+ //Set background as Divot to Captcha
+ Divot,
+ //Set background as DottedDiamond to Captcha
+ DottedDiamond,
+ //Set background as DottedGrid to Captcha
+ DottedGrid,
+ //Set background as ForwardDiagonal to Captcha
+ ForwardDiagonal,
+ //Set background as Horizontal to Captcha
+ Horizontal,
+ //Set background as HorizontalBrick to Captcha
+ HorizontalBrick,
+ //Set background as LargeCheckerBoard to Captcha
+ LargeCheckerBoard,
+ //Set background as LargeConfetti to Captcha
+ LargeConfetti,
+ //Set background as LargeGrid to Captcha
+ LargeGrid,
+ //Set background as LightDownwardDiagonal to Captcha
+ LightDownwardDiagonal,
+ //Set background as LightHorizontal to Captcha
+ LightHorizontal,
+ //Set background as LightUpwardDiagonal to Captcha
+ LightUpwardDiagonal,
+ //Set background as LightVertical to Captcha
+ LightVertical,
+ //Set background as Max to Captcha
+ Max,
+ //Set background as Min to Captcha
+ Min,
+ //Set background as NarrowHorizontal to Captcha
+ NarrowHorizontal,
+ //Set background as NarrowVertical to Captcha
+ NarrowVertical,
+ //Set background as OutlinedDiamond to Captcha
+ OutlinedDiamond,
+ //Set background as Percent90 to Captcha
+ Percent90,
+ //Set background as Wave to Captcha
+ Wave,
+ //Set background as Weave to Captcha
+ Weave,
+ //Set background as WideDownwardDiagonal to Captcha
+ WideDownwardDiagonal,
+ //Set background as WideUpwardDiagonal to Captcha
+ WideUpwardDiagonal,
+ //Set background as ZigZag to Captcha
+ ZigZag,
+ }
+
+ class ListBox extends ej.Widget {
+ static fn: ListBox;
+ constructor(element: JQuery | Element, options?: ListBox.Model);
+ static Locale: any;
+ model: ListBox.Model;
+ defaults: ListBox.Model;
+
+ /** Adds a given list items in the ListBox widget at a specified index. It accepts two parameters.
+ * @param {any|string} This can be a list item object (for JSON binding) or a string (for UL and LI rendering).
+ * Also we can the specify this as an array of list item object or an array of strings to add multiple items.
+ * @param {number} The index value to add the given items at the specified index. If index is not specified, the given items will be added at the end of the list.
+ * @returns {void}
+ */
+ addItem(listItem: any | string, index: number): void;
+
+ /** Checks all the list items in the ListBox widget. It is dependent on showCheckbox property.
+ * @returns {void}
+ */
+ checkAll(): void;
+
+ /** Checks a list item by using its index. It is dependent on showCheckbox property.
+ * @param {number} Index of the listbox item to be checked. If index is not specified, the given items will be added at the end of the list.
+ * @returns {void}
+ */
+ checkItemByIndex(index: number): void;
+
+ /** Checks multiple list items by using its index values. It is dependent on showCheckbox property.
+ * @param {number[]} Index/Indices of the listbox items to be checked. If index is not specified, the given items will be added at the end of the list.
+ * @returns {void}
+ */
+ checkItemsByIndices(indices: number[]): void;
+
+ /** Disables the ListBox widget.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Disables a list item by passing the item text as parameter.
+ * @param {string} Text of the listbox item to be disabled.
+ * @returns {void}
+ */
+ disableItem(text: string): void;
+
+ /** Disables a list Item using its index value.
+ * @param {number} Index of the listbox item to be disabled.
+ * @returns {void}
+ */
+ disableItemByIndex(index: number): void;
+
+ /** Disables set of list Items using its index values.
+ * @param {number[]|string} Indices of the listbox items to be disabled.
+ * @returns {void}
+ */
+ disableItemsByIndices(Indices: number[] | string): void;
+
+ /** Enables the ListBox widget when it is disabled.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Enables a list Item using its item text value.
+ * @param {string} Text of the listbox item to be enabled.
+ * @returns {void}
+ */
+ enableItem(text: string): void;
+
+ /** Enables a list item using its index value.
+ * @param {number} Index of the listbox item to be enabled.
+ * @returns {void}
+ */
+ enableItemByIndex(index: number): void;
+
+ /** Enables a set of list Items using its index values.
+ * @param {number[]|string} Indices of the listbox items to be enabled.
+ * @returns {void}
+ */
+ enableItemsByIndices(indices: number[] | string): void;
+
+ /** Returns the list of checked items in the ListBox widget. It is dependent on showCheckbox property.
+ * @returns {any}
+ */
+ getCheckedItems(): any;
+
+ /** Returns the list of selected items in the ListBox widget.
+ * @returns {any}
+ */
+ getSelectedItems(): any;
+
+ /** Returns an item’s index based on the given text.
+ * @param {string} The list item text (label)
+ * @returns {number}
+ */
+ getIndexByText(text: string): number;
+
+ /** Returns an item’s index based on the value given.
+ * @param {string} The list item’s value
+ * @returns {number}
+ */
+ getIndexByValue(indices: string): number;
+
+ /** Returns an item’s text (label) based on the index given.
+ * @returns {string}
+ */
+ getTextByIndex(): string;
+
+ /** Returns a list item’s object using its index.
+ * @returns {any}
+ */
+ getItemByIndex(): any;
+
+ /** Returns a list item’s object based on the text given.
+ * @param {string} The list item text.
+ * @returns {any}
+ */
+ getItemByText(text: string): any;
+
+ /** Merges the given data with the existing data items in the listbox.
+ * @param {Array} Data to merge in listbox.
+ * @returns {void}
+ */
+ mergeData(data: any[]): void;
+
+ /** Selects the next item based on the current selection.
+ * @returns {void}
+ */
+ moveDown(): void;
+
+ /** Selects the previous item based on the current selection.
+ * @returns {void}
+ */
+ moveUp(): void;
+
+ /** Refreshes the ListBox widget.
+ * @param {boolean} Refreshes both the datasource and the dimensions of the ListBox widget when the parameter is passed as true, otherwise only the ListBox dimensions will be refreshed.
+ * @returns {void}
+ */
+ refresh(refreshData: boolean): void;
+
+ /** Removes all the list items from listbox.
+ * @returns {void}
+ */
+ removeAll(): void;
+
+ /** Removes the selected list items from the listbox.
+ * @returns {void}
+ */
+ removeSelectedItems(): void;
+
+ /** Removes a list item by using its text.
+ * @param {string} Text of the listbox item to be removed.
+ * @returns {void}
+ */
+ removeItemByText(text: string): void;
+
+ /** Removes a list item by using its index value.
+ * @param {number} Index of the listbox item to be removed.
+ * @returns {void}
+ */
+ removeItemByIndex(index: number): void;
+
+ /**
+ * @returns {void}
+ */
+ selectAll(): void;
+
+ /** Selects the list item using its text value.
+ * @param {string} Text of the listbox item to be selected.
+ * @returns {void}
+ */
+ selectItemByText(text: string): void;
+
+ /** Selects list item using its value property.
+ * @param {string} Value of the listbox item to be selected.
+ * @returns {void}
+ */
+ selectItemByValue(value: string): void;
+
+ /** Selects list item using its index value.
+ * @param {number} Index of the listbox item to be selected.
+ * @returns {void}
+ */
+ selectItemByIndex(index: number): void;
+
+ /** Selects a set of list items through its index values.
+ * @param {number|number[]} Index/Indices of the listbox item to be selected.
+ * @returns {void}
+ */
+ selectItemsByIndices(Indices: number | number[]): void;
+
+ /** Unchecks all the checked list items in the ListBox widget. To use this method showCheckbox property to be set as true.
+ * @returns {void}
+ */
+ uncheckAll(): void;
+
+ /** Unchecks a checked list item using its index value. To use this method showCheckbox property to be set as true.
+ * @param {number} Index of the listbox item to be unchecked.
+ * @returns {void}
+ */
+ uncheckItemByIndex(index: number): void;
+
+ /** Unchecks the set of checked list items using its index values. To use this method showCheckbox property must be set to true.
+ * @param {number[]|string} Indices of the listbox item to be unchecked.
+ * @returns {void}
+ */
+ uncheckItemsByIndices(indices: number[] | string): void;
+
+ /**
+ * @returns {void}
+ */
+ unselectAll(): void;
+
+ /** Unselects a selected list item using its index value
+ * @param {number} Index of the listbox item to be unselected.
+ * @returns {void}
+ */
+ unselectItemByIndex(index: number): void;
+
+ /** Unselects a selected list item using its text value.
+ * @param {string} Text of the listbox item to be unselected.
+ * @returns {void}
+ */
+ unselectItemByText(text: string): void;
+
+ /** Unselects a selected list item using its value.
+ * @param {string} Value of the listbox item to be unselected.
+ * @returns {void}
+ */
+ unselectItemByValue(value: string): void;
+
+ /** Unselects a set of list items using its index values.
+ * @param {number[]|string} Indices of the listbox item to be unselected.
+ * @returns {void}
+ */
+ unselectItemsByIndices(indices: number[] | string): void;
+
+ /** Hides all the checked items in the listbox.
+ * @returns {void}
+ */
+ hideCheckedItems(): void;
+
+ /** Shows a set of hidden list Items using its index values.
+ * @param {number[]|string} Indices of the listbox items to be shown.
+ * @returns {void}
+ */
+ showItemByIndices(indices: number[] | string): void;
+
+ /** Hides a set of list Items using its index values.
+ * @param {number[]|string} Indices of the listbox items to be hidden.
+ * @returns {void}
+ */
+ hideItemsByIndices(indices: number[] | string): void;
+
+ /** Shows the hidden list items using its values.
+ * @param {Array} Values of the listbox items to be shown.
+ * @returns {void}
+ */
+ showItemsByValues(values: any[]): void;
+
+ /** Hides the list item using its values.
+ * @param {Array} Values of the listbox items to be hidden.
+ * @returns {void}
+ */
+ hideItemsByValues(values: any[]): void;
+
+ /** Shows a hidden list item using its value.
+ * @param {string} Value of the listbox item to be shown.
+ * @returns {void}
+ */
+ showItemByValue(value: string): void;
+
+ /** Hide a list item using its value.
+ * @param {string} Value of the listbox item to be hidden.
+ * @returns {void}
+ */
+ hideItemByValue(value: string): void;
+
+ /** Shows a hidden list item using its index value.
+ * @param {number} Index of the listbox item to be shown.
+ * @returns {void}
+ */
+ showItemByIndex(index: number): void;
+
+ /** Hides a list item using its index value.
+ * @param {number} Index of the listbox item to be hidden.
+ * @returns {void}
+ */
+ hideItemByIndex(index: number): void;
+
+ /**
+ * @returns {void}
+ */
+ show(): void;
+
+ /** Hides the listbox.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** Hides all the listbox items in the listbox.
+ * @returns {void}
+ */
+ hideAllItems(): void;
+
+ /** Shows all the listbox items in the listbox.
+ * @returns {void}
+ */
+ showAllItems(): void;
+ }
+ export namespace ListBox {
+
+ export interface Model {
+
+ /** Enables/disables the dragging behavior of the items in ListBox widget.
+ * @Default {false}
+ */
+ allowDrag?: boolean;
+
+ /** Accepts the items which are dropped in to it, when it is set to true.
+ * @Default {false}
+ */
+ allowDrop?: boolean;
+
+ /** Enables or disables multiple selection.
+ * @Default {false}
+ */
+ allowMultiSelection?: boolean;
+
+ /** Loads the list data on demand via scrolling behavior to improve the application’s performance. There are two ways to load data which can be defined using “virtualScrollMode†property.
+ * @Default {false}
+ */
+ allowVirtualScrolling?: boolean;
+
+ /** Enables or disables the case sensitive search for list item by typing the text (search) value.
+ * @Default {false}
+ */
+ caseSensitiveSearch?: boolean;
+
+ /** Dynamically populate data of a list box while selecting an item in another list box i.e.
+ * rendering child list box based on the item selection in parent list box.
+ * This property accepts the id of the child ListBox widget to populate the data.
+ * @Default {null}
+ */
+ cascadeTo?: string;
+
+ /** Set of list items to be checked by default using its index. It works only when the showCheckbox property is set to true.
+ * @Default {null}
+ */
+ checkedIndices?: any[];
+
+ /** The root class for the ListBox widget to customize the existing theme.
+ * @Default {“â€}
+ */
+ cssClass?: string;
+
+ /** Contains the list of data for generating the list items.
+ * @Default {null}
+ */
+ dataSource?: any;
+
+ /** Enables or disables the ListBox widget.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Enables or disables the search behavior to find the specific list item by typing the text value.
+ * @Default {false}
+ */
+ enableIncrementalSearch?: boolean;
+
+ /** Allows the current model values to be saved in local storage or browser cookies for state maintenance when it is set to true.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Displays the ListBox widget’s content from right to left when enabled.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Specifies ellipsis ("...") representation in an overflowed list item content when it is set to false.
+ * @Default {true}
+ */
+ enableWordWrap?: boolean;
+
+ /** Mapping fields for the data items of the ListBox widget.
+ * @Default {null}
+ */
+ fields?: Fields;
+
+ /** Defines the height of the ListBox widget.
+ * @Default {null}
+ */
+ height?: string;
+
+ /** Defines the height for individual ListBox item.
+ * @Default {null}
+ */
+ itemHeight?: string;
+
+ /** The number of list items to be shown in the ListBox widget. The remaining list items will be scrollable.
+ * @Default {null}
+ */
+ itemsCount?: number;
+
+ /** The total number of list items to be rendered in the ListBox widget.
+ * @Default {null}
+ */
+ totalItemsCount?: number;
+
+ /** The number of list items to be loaded in the list box while enabling virtual scrolling and when virtualScrollMode is set to continuous.
+ * @Default {5}
+ */
+ itemRequestCount?: number;
+
+ /** Loads data for the listbox by default (i.e. on initialization) when it is set to true. It creates empty ListBox if it is set to false.
+ */
+ loadDataOnInit?: boolean;
+
+ /** The query to retrieve required data from the data source.
+ * @Default {ej.Query()}
+ */
+ query?: ej.Query;
+
+ /** The list item to be selected by default using its index.
+ * @Default {null}
+ */
+ selectedIndex?: number;
+
+ /** The list items to be selected by default using its indices. To use this property allowMultiSelection should be enabled.
+ * @Default {[]}
+ */
+ selectedIndices?: any[];
+
+ /** Enables/Disables the multi selection option with the help of checkbox control.
+ * @Default {false}
+ */
+ showCheckbox?: boolean;
+
+ /** To display the ListBox container with rounded corners.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** The template to display the ListBox widget with customized appearance.
+ * @Default {null}
+ */
+ template?: string;
+
+ /** Holds the selected items values and used to bind value to the list item using AngularJS and KnockoutJS.
+ * @Default {“â€}
+ */
+ value?: number;
+
+ /** Specifies the virtual scroll mode to load the list data on demand via scrolling behavior. There are two types of mode.
+ */
+ virtualScrollMode?: ej.VirtualScrollMode | string;
+
+ /** Defines the width of the ListBox widget.
+ * @Default {null}
+ */
+ width?: string;
+
+ /** Specifies the targetID for the listbox items.
+ */
+ targetID?: string;
+
+ /** Triggers before the AJAX request begins to load data in the ListBox widget. */
+ actionBegin?(e: ActionBeginEventArgs): void;
+
+ /** Triggers after the data requested via AJAX is successfully loaded in the ListBox widget. */
+ actionSuccess?(e: ActionSuccessEventArgs): void;
+
+ /** Triggers when the AJAX requests complete. The request may get failed or succeed. */
+ actionComplete?(e: ActionCompleteEventArgs): void;
+
+ /** Triggers when the data requested from AJAX get failed. */
+ actionFailure?(e: ActionFailureEventArgs): void;
+
+ /** Event will be triggered before the requested data via AJAX once loaded in successfully. */
+ actionBeforeSuccess?(e: ActionBeforeSuccessEventArgs): void;
+
+ /** Triggers when the item selection is changed. */
+ change?(e: ChangeEventArgs): void;
- /** Triggers when the list item is checked or unchecked. */
- checkChange?(e: CheckChangeEventArgs): void;
+ /** Triggers when the list item is checked or unchecked. */
+ checkChange?(e: CheckChangeEventArgs): void;
- /** Triggers when the ListBox widget is created successfully. */
- create?(e: CreateEventArgs): void;
-
- /** Triggers when the ListBox widget is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ /** Triggers when the ListBox widget is created successfully. */
+ create?(e: CreateEventArgs): void;
+
+ /** Triggers when the ListBox widget is destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
- /** Triggers when focus the listbox items. */
- focusIn?(e: FocusInEventArgs): void;
+ /** Triggers when focus the listbox items. */
+ focusIn?(e: FocusInEventArgs): void;
- /** Triggers when focus out from listbox items. */
- focusOut?(e: FocusOutEventArgs): void;
+ /** Triggers when focus out from listbox items. */
+ focusOut?(e: FocusOutEventArgs): void;
- /** Triggers when the list item is being dragged. */
- itemDrag?(e: ItemDragEventArgs): void;
+ /** Triggers when the list item is being dragged. */
+ itemDrag?(e: ItemDragEventArgs): void;
- /** Triggers when the list item is ready to be dragged. */
- itemDragStart?(e: ItemDragStartEventArgs): void;
+ /** Triggers when the list item is ready to be dragged. */
+ itemDragStart?(e: ItemDragStartEventArgs): void;
- /** Triggers when the list item stops dragging. */
- itemDragStop?(e: ItemDragStopEventArgs): void;
+ /** Triggers when the list item stops dragging. */
+ itemDragStop?(e: ItemDragStopEventArgs): void;
- /** Triggers when the list item is dropped. */
- itemDrop?(e: ItemDropEventArgs): void;
+ /** Triggers when the list item is dropped. */
+ itemDrop?(e: ItemDropEventArgs): void;
- /** Triggers when a list item gets selected. */
- select?(e: SelectEventArgs): void;
+ /** Triggers when a list item gets selected. */
+ select?(e: SelectEventArgs): void;
- /** Triggers when a list item gets unselected. */
- unselect?(e: UnselectEventArgs): void;
-}
+ /** Triggers when a list item gets unselected. */
+ unselect?(e: UnselectEventArgs): void;
+ }
-export interface ActionBeginEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-}
+ export interface ActionBeginEventArgs {
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+ }
-export interface ActionSuccessEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-}
+ export interface ActionSuccessEventArgs {
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+ }
-export interface ActionCompleteEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-}
+ export interface ActionCompleteEventArgs {
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+ }
-export interface ActionFailureEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-}
+ export interface ActionFailureEventArgs {
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+ }
-export interface ActionBeforeSuccessEventArgs {
+ export interface ActionBeforeSuccessEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** List of actual object.
- */
- actual?: any;
+ /** List of actual object.
+ */
+ actual?: any;
- /** Object of ListBox widget which contains DataManager arguments
- */
- request?: any;
+ /** Object of ListBox widget which contains DataManager arguments
+ */
+ request?: any;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** List of array object
- */
- result?: any[];
+ /** List of array object
+ */
+ result?: any[];
- /** ExecuteQuery object of DataManager
- */
- xhr?: any;
-}
+ /** ExecuteQuery object of DataManager
+ */
+ xhr?: any;
+ }
-export interface ChangeEventArgs {
+ export interface ChangeEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** List item object.
- */
- item?: any;
+ /** List item object.
+ */
+ item?: any;
- /** The Datasource of the listbox.
- */
- data?: any;
+ /** The Datasource of the listbox.
+ */
+ data?: any;
- /** List item’s index.
- */
- index?: number;
+ /** List item’s index.
+ */
+ index?: number;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Boolean value based on whether the list item is checked or not.
- */
- isChecked?: boolean;
+ /** Boolean value based on whether the list item is checked or not.
+ */
+ isChecked?: boolean;
- /** Boolean value based on whether the list item is selected or not.
- */
- isSelected?: boolean;
+ /** Boolean value based on whether the list item is selected or not.
+ */
+ isSelected?: boolean;
- /** Boolean value based on the list item is enabled or not.
- */
- isEnabled?: boolean;
+ /** Boolean value based on the list item is enabled or not.
+ */
+ isEnabled?: boolean;
- /** List item’s text (label).
- */
- text?: string;
+ /** List item’s text (label).
+ */
+ text?: string;
- /** List item’s value.
- */
- value?: string;
-}
+ /** List item’s value.
+ */
+ value?: string;
+ }
-export interface CheckChangeEventArgs {
+ export interface CheckChangeEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** List item object.
- */
- item?: any;
+ /** List item object.
+ */
+ item?: any;
- /** The Datasource of the listbox.
- */
- data?: any;
+ /** The Datasource of the listbox.
+ */
+ data?: any;
- /** List item’s index.
- */
- index?: number;
+ /** List item’s index.
+ */
+ index?: number;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Boolean value based on whether the list item is checked or not.
- */
- isChecked?: boolean;
+ /** Boolean value based on whether the list item is checked or not.
+ */
+ isChecked?: boolean;
- /** Boolean value based on whether the list item is selected or not.
- */
- isSelected?: boolean;
+ /** Boolean value based on whether the list item is selected or not.
+ */
+ isSelected?: boolean;
- /** Boolean value based on the list item is enabled or not.
- */
- isEnabled?: boolean;
+ /** Boolean value based on the list item is enabled or not.
+ */
+ isEnabled?: boolean;
- /** List item’s text (label).
- */
- text?: string;
+ /** List item’s text (label).
+ */
+ text?: string;
- /** List item’s value.
- */
- value?: string;
-}
+ /** List item’s value.
+ */
+ value?: string;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
-}
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
-}
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
+ }
-export interface FocusInEventArgs {
+ export interface FocusInEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
-}
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
+ }
-export interface FocusOutEventArgs {
+ export interface FocusOutEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
-}
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
+ }
-export interface ItemDragEventArgs {
+ export interface ItemDragEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** The Datasource of the listbox.
- */
- data?: any;
+ /** The Datasource of the listbox.
+ */
+ data?: any;
- /** List item’s index.
- */
- index?: number;
+ /** List item’s index.
+ */
+ index?: number;
- /** Boolean value based on whether the list item is checked or not.
- */
- isChecked?: boolean;
+ /** Boolean value based on whether the list item is checked or not.
+ */
+ isChecked?: boolean;
- /** Boolean value based on whether the list item is selected or not.
- */
- isSelected?: boolean;
+ /** Boolean value based on whether the list item is selected or not.
+ */
+ isSelected?: boolean;
- /** Boolean value based on whether the list item is enabled or not.
- */
- isEnabled?: boolean;
+ /** Boolean value based on whether the list item is enabled or not.
+ */
+ isEnabled?: boolean;
- /** List item’s text (label).
- */
- text?: string;
+ /** List item’s text (label).
+ */
+ text?: string;
- /** List item’s value.
- */
- value?: string;
-}
+ /** List item’s value.
+ */
+ value?: string;
+ }
-export interface ItemDragStartEventArgs {
+ export interface ItemDragStartEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** The Datasource of the listbox.
- */
- data?: any;
+ /** The Datasource of the listbox.
+ */
+ data?: any;
- /** List item’s index.
- */
- index?: number;
+ /** List item’s index.
+ */
+ index?: number;
- /** Boolean value based on whether the list item is checked or not.
- */
- isChecked?: boolean;
+ /** Boolean value based on whether the list item is checked or not.
+ */
+ isChecked?: boolean;
- /** Boolean value based on whether the list item is selected or not.
- */
- isSelected?: boolean;
+ /** Boolean value based on whether the list item is selected or not.
+ */
+ isSelected?: boolean;
- /** Boolean value based on whether the list item is enabled or not.
- */
- isEnabled?: boolean;
+ /** Boolean value based on whether the list item is enabled or not.
+ */
+ isEnabled?: boolean;
- /** List item’s text (label).
- */
- text?: string;
+ /** List item’s text (label).
+ */
+ text?: string;
- /** List item’s value.
- */
- value?: string;
-}
+ /** List item’s value.
+ */
+ value?: string;
+ }
-export interface ItemDragStopEventArgs {
+ export interface ItemDragStopEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** The Datasource of the listbox.
- */
- data?: any;
+ /** The Datasource of the listbox.
+ */
+ data?: any;
- /** List item’s index.
- */
- index?: number;
+ /** List item’s index.
+ */
+ index?: number;
- /** Boolean value based on whether the list item is checked or not.
- */
- isChecked?: boolean;
+ /** Boolean value based on whether the list item is checked or not.
+ */
+ isChecked?: boolean;
- /** Boolean value based on whether the list item is selected or not.
- */
- isSelected?: boolean;
+ /** Boolean value based on whether the list item is selected or not.
+ */
+ isSelected?: boolean;
- /** Boolean value based on whether the list item is enabled or not.
- */
- isEnabled?: boolean;
+ /** Boolean value based on whether the list item is enabled or not.
+ */
+ isEnabled?: boolean;
- /** List item’s text (label).
- */
- text?: string;
+ /** List item’s text (label).
+ */
+ text?: string;
- /** List item’s value.
- */
- value?: string;
-}
+ /** List item’s value.
+ */
+ value?: string;
+ }
-export interface ItemDropEventArgs {
+ export interface ItemDropEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** The Datasource of the listbox.
- */
- data?: any;
+ /** The Datasource of the listbox.
+ */
+ data?: any;
- /** List item’s index.
- */
- index?: number;
+ /** List item’s index.
+ */
+ index?: number;
- /** Boolean value based on whether the list item is checked or not.
- */
- isChecked?: boolean;
+ /** Boolean value based on whether the list item is checked or not.
+ */
+ isChecked?: boolean;
- /** Boolean value based on whether the list item is selected or not.
- */
- isSelected?: boolean;
+ /** Boolean value based on whether the list item is selected or not.
+ */
+ isSelected?: boolean;
- /** Boolean value based on whether the list item is enabled or not.
- */
- isEnabled?: boolean;
+ /** Boolean value based on whether the list item is enabled or not.
+ */
+ isEnabled?: boolean;
- /** List item’s text (label).
- */
- text?: string;
+ /** List item’s text (label).
+ */
+ text?: string;
- /** List item’s value.
- */
- value?: string;
-}
+ /** List item’s value.
+ */
+ value?: string;
+ }
-export interface SelectEventArgs {
+ export interface SelectEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** List item object.
- */
- item?: any;
+ /** List item object.
+ */
+ item?: any;
- /** The Datasource of the listbox.
- */
- data?: any;
+ /** The Datasource of the listbox.
+ */
+ data?: any;
- /** List item’s index.
- */
- index?: number;
+ /** List item’s index.
+ */
+ index?: number;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Boolean value based on whether the list item is checked or not.
- */
- isChecked?: boolean;
+ /** Boolean value based on whether the list item is checked or not.
+ */
+ isChecked?: boolean;
- /** Boolean value based on whether the list item is selected or not.
- */
- isSelected?: boolean;
+ /** Boolean value based on whether the list item is selected or not.
+ */
+ isSelected?: boolean;
- /** Boolean value based on the list item is enabled or not.
- */
- isEnabled?: boolean;
+ /** Boolean value based on the list item is enabled or not.
+ */
+ isEnabled?: boolean;
- /** List item’s text (label).
- */
- text?: string;
+ /** List item’s text (label).
+ */
+ text?: string;
- /** List item’s value.
- */
- value?: string;
-}
+ /** List item’s value.
+ */
+ value?: string;
+ }
-export interface UnselectEventArgs {
+ export interface UnselectEventArgs {
- /** Instance of the listbox model object.
- */
- model?: ej.ListBox.Model;
-
- /** Name of the event.
- */
- type?: string;
+ /** Instance of the listbox model object.
+ */
+ model?: ej.ListBox.Model;
+
+ /** Name of the event.
+ */
+ type?: string;
- /** List item object.
- */
- item?: any;
-
- /** The Datasource of the listbox.
- */
- data?: any;
-
- /** List item’s index.
- */
- index?: number;
-
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
-
- /** Boolean value based on whether the list item is checked or not.
- */
- isChecked?: boolean;
-
- /** Boolean value based on whether the list item is selected or not.
- */
- isSelected?: boolean;
-
- /** Boolean value based on the list item is enabled or not.
- */
- isEnabled?: boolean;
-
- /** List item’s text (label).
- */
- text?: string;
-
- /** List item’s value.
- */
- value?: string;
-}
-
-export interface Fields {
-
- /** Defines the specific field name which contains Boolean values to specify whether the list items to be checked by default or not.
- */
- checkBy?: boolean;
-
- /** The grouping in the ListBox widget can be defined using this field.
- */
- groupBy?: string;
-
- /** Defines the HTML attributes such as id, class, styles for the specific ListBox item.
- */
- htmlAttributes?: any;
-
- /** Defines the specific field name which contains id values for the list items.
- */
- id?: string;
-
- /** Defines the imageURL for the image to be displayed in the ListBox item.
- */
- imageUrl?: string;
-
- /** Defines the image attributes such as height, width, styles and so on.
- */
- imageAttributes?: string;
-
- /** Defines the specific field name which contains Boolean values to specify whether the list items to be selected by default or not.
- */
- selectBy?: boolean;
-
- /** Defines the sprite CSS class for the image to be displayed.
- */
- spriteCssClass?: string;
-
- /** Defines the table name to get the specific set of list items to be loaded in the ListBox widget while rendering with remote data.
- */
- tableName?: string;
-
- /** Defines the specific field name in the data source to load the list with data.
- */
- text?: string;
-
- /** Defines the specific field name in the data source to load the list with data value property.
- */
- value?: string;
-}
-}
-
-class Calculate {
- static fn: Calculate;
- constructor(element: JQuery | Element, options?: Calculate.Model);
- static Locale: any;
- model: Calculate.Model;
- defaults: Calculate.Model;
-
- /** Add the custom formulas with function in CalcEngine library
- * @param {string} pass the formula name
- * @param {string} pass the custom function name to call
- * @returns {void}
- */
- addCustomFunction(FormulaName: string, FunctionName: string): void;
-
- /** Adds a named range to the NamedRanges collection
- * @param {string} pass the namedRange's name
- * @param {string} pass the cell range of NamedRange
- * @returns {void}
- */
- addNamedRange(Name: string, cellRange: string): void;
-
- /** Accepts a possible parsed formula and returns the calculated value without quotes.
- * @param {string} pass the cell range to adjust its range
- * @returns {string}
- */
- adjustRangeArg(Name: string): string;
-
- /** When a formula cell changes, call this method to clear it from its dependent cells.
- * @param {string} pass the changed cell address
- * @returns {void}
- */
- clearFormulaDependentCells(Cell: string): void;
-
- /** Call this method to clear whether an exception was raised during the computation of a library function.
- * @returns {void}
- */
- clearLibraryComputationException(): void;
-
- /** Get the column index from a cell reference passed in.
- * @param {string} pass the cell address
- * @returns {void}
- */
- colIndex(Cell: string): void;
-
- /** Evaluates a parsed formula.
- * @param {string} pass the parsed formula
- * @returns {string}
- */
- computedValue(Formula: string): string;
-
- /** Evaluates a parsed formula.
- * @param {string} pass the parsed formula
- * @returns {string}
- */
- computeFormula(Formula: string): string;
-}
-export namespace Calculate {
-
-export interface Model {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-}
-}
-
-class CheckBox extends ej.Widget {
- static fn: CheckBox;
- constructor(element: JQuery | Element, options?: CheckBox.Model);
- static Locale: any;
- model: CheckBox.Model;
- defaults: CheckBox.Model;
-
- /** Destroy the CheckBox widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
- * @returns {void}
- */
- destroy(): void;
-
- /** Disable the CheckBox to prevent all user interactions.
- * @returns {void}
- */
- disable(): void;
-
- /** To enable the CheckBox
- * @returns {void}
- */
- enable(): void;
-
- /** To Check the status of CheckBox
- * @returns {boolean}
- */
- isChecked(): boolean;
-}
-export namespace CheckBox {
-
-export interface Model {
-
- /** Specifies whether CheckBox has to be in checked or not.
- * We can also specify array of string as value for this property.
- * If any of the value in the specified array matches the value of the textbox,
- * then it will be considered as checked. It will be useful in MVVM binding,
- * specify array type to identify the values of the checked CheckBoxes.
- * @Default {false}
- */
- checked?: boolean|string[];
-
- /** Specifies the State of CheckBox.See below to get available CheckState
- * @Default {null}
- */
- checkState?: ej.CheckState|string;
-
- /** Sets the root CSS class for CheckBox theme, which is used customize.
- */
- cssClass?: string;
-
- /** Specifies the checkbox control state.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Specifies the persist property for CheckBox while initialization.
- * The persist API save current model value to browser cookies for state maintains.
- * While refreshing the CheckBox control page the model value apply from browser cookies.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Specify the Right to Left direction to Checkbox
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Specifies the enable or disable Tri-State for checkbox control.
- * @Default {false}
- */
- enableTriState?: boolean;
-
- /** It allows to define the characteristics of the CheckBox control. It will helps to extend the capability of an HTML element.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Specified value to be added an id attribute of the CheckBox.
- * @Default {null}
- */
- id?: string;
-
- /** Specify the prefix value of id to be added before the current id of the CheckBox.
- * @Default {ej}
- */
- idPrefix?: string;
-
- /** Specifies the name attribute of the CheckBox.
- * @Default {null}
- */
- name?: string;
-
- /** Displays rounded corner borders to CheckBox
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Specifies the size of the CheckBox.See below to know available CheckboxSize
- * @Default {small}
- */
- size?: ej.CheckboxSize|string;
-
- /** Specifies the text content to be displayed for CheckBox.
- */
- text?: string;
-
- /** Set the jQuery validation error message in CheckBox.
- * @Default {null}
- */
- validationMessage?: any;
-
- /** Set the jQuery validation rules in CheckBox.
- * @Default {null}
- */
- validationRules?: any;
-
- /** Specifies the value attribute of the CheckBox.
- * @Default {null}
- */
- value?: string;
-
- /** Fires before the CheckBox is going to changed its state successfully */
- beforeChange?(e: BeforeChangeEventArgs): void;
-
- /** Fires when the CheckBox state is changed successfully */
- change?(e: ChangeEventArgs): void;
-
- /** Fires when the CheckBox state is created successfully */
- create?(e: CreateEventArgs): void;
-
- /** Fires when the CheckBox state is destroyed successfully */
- destroy?(e: DestroyEventArgs): void;
-}
-
-export interface BeforeChangeEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the CheckBox model
- */
- model?: ej.CheckBox.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the event model values
- */
- event?: any;
-
- /** returns the status whether the element is checked or not.
- */
- isChecked?: boolean;
-}
-
-export interface ChangeEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the CheckBox model
- */
- model?: ej.CheckBox.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the event arguments
- */
- event?: any;
-
- /** returns the status whether the element is checked or not.
- */
- isChecked?: boolean;
-
- /** returns the state of the checkbox
- */
- checkState?: string;
-}
-
-export interface CreateEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the CheckBox model
- */
- model?: ej.CheckBox.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface DestroyEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the CheckBox model
- */
- model?: ej.CheckBox.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-}
-enum CheckState {
-//string
-Uncheck,
-//string
-Check,
-//string
-Indeterminate,
-}
-enum CheckboxSize {
-//Displays the CheckBox in medium size
-Medium,
-//Displays the CheckBox in small size
-Small,
-}
-
-class ColorPicker extends ej.Widget {
- static fn: ColorPicker;
- constructor(element: JQuery | Element, options?: ColorPicker.Model);
- static Locale: any;
- model: ColorPicker.Model;
- defaults: ColorPicker.Model;
-
- /** Disables the color picker control
- * @returns {void}
- */
- disable(): void;
-
- /** Enable the color picker control
- * @returns {void}
- */
- enable(): void;
-
- /** Gets the selected color in RGB format
- * @returns {any}
- */
- getColor(): any;
-
- /** Gets the selected color value as string
- * @returns {string}
- */
- getValue(): string;
-
- /** To Convert color value from hexCode to RGB
- * @param {string} Specified HEX code converted to RGB
- * @returns {any}
- */
- hexCodeToRGB(colorCode: string): any;
-
- /** Hides the ColorPicker popup, if in opened state.
- * @returns {void}
- */
- hide(): void;
-
- /** Convert color value from HSV to RGB
- * @param {any} Specified HSV code converted to RGB
- * @returns {any}
- */
- HSVToRGB(HSV: any): any;
-
- /** Convert color value from RGB to HEX
- * @param {any} Specified RGB code converted to HEX code
- * @returns {string}
- */
- RGBToHEX(RGB: any): string;
-
- /** Convert color value from RGB to HSV
- * @param {any} Specified RGB code converted to HSV code
- * @returns {any}
- */
- RGBToHSV(RGB: any): any;
-
- /** Open the ColorPicker popup.
- * @returns {void}
- */
- show(): void;
-}
-export namespace ColorPicker {
-
-export interface Model {
-
- /** The ColorPicker control allows to define the customized text to displayed in button elements. Using the property to achieve the customized culture values.
- * @Default {{ apply: Apply, cancel: Cancel, swatches: Swatches }}
- */
- buttonText?: ButtonText;
-
- /** Allows to change the mode of the button. Please refer below to know available button mode
- * @Default {ej.ButtonMode.Split}
- */
- buttonMode?: ej.ButtonMode|string;
-
- /** Specifies the number of columns to be displayed color palette model.
- * @Default {10}
- */
- columns?: number|string;
-
- /** This property allows you to customize its appearance using user-defined CSS and custom skin options such as colors and backgrounds.
- */
- cssClass?: string;
-
- /** This property allows to define the custom colors in the palette model.Custom palettes are created by passing a comma delimited string of HEX values or an array of colors.
- * @Default {empty}
- */
- custom?: any[];
-
- /** This property allows to embed the popup in the order of DOM element flow . When we set the value as true, the color picker popup is always in visible state.
- * @Default {false}
- */
- displayInline?: boolean;
-
- /** This property allows to change the control in enabled or disabled state.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** This property allows to enable or disable the opacity slider in the color picker control
- * @Default {true}
- */
- enableOpacity?: boolean;
-
- /** It allows to define the characteristics of the ColorPicker control. It will helps to extend the capability of an HTML element.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Defines the localized text values in button and tooltip.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Specifies the model type to be rendered initially in the color picker control. See below to get available ModelType
- * @Default {ej.ColorPicker.ModelType.Default}
- */
- modelType?: ej.ColorPicker.ModelType|string;
-
- /** This property allows to change the opacity value .The selected color opacity will be adjusted by using this opacity value.
- * @Default {100}
- */
- opacityValue?: number|string;
-
- /** Specifies the palette type to be displayed at initial time in palette model.There two types of palette model available in ColorPicker control. See below available Palette
- * @Default {ej.ColorPicker.Palette.BasicPalette}
- */
- palette?: ej.ColorPicker.Palette|string;
-
- /** This property allows to define the preset model to be rendered initially in palette type.It consists of 12 different types of presets. Each presets have 50 colors.
- * See below available Presets
- * @Default {ej.ColorPicker.Presets.Basic}
- */
- presetType?: ej.ColorPicker.Presets|string;
-
- /** Allows to show/hides the apply and cancel buttons in ColorPicker control
- * @Default {true}
- */
- showApplyCancel?: boolean;
-
- /** Allows to show/hides the clear button in ColorPicker control
- * @Default {true}
- */
- showClearButton?: boolean;
-
- /** This property allows to provides live preview support for current cursor selection color and selected color.
- * @Default {true}
- */
- showPreview?: boolean;
-
- /** This property allows to store the color values in custom list.The ColorPicker will keep up to 11 colors in a custom list.
- * By clicking the add button, the selected color from picker or palette will get added in the recent color list.
- * @Default {false}
- */
- showRecentColors?: boolean;
-
- /** Allows to show/hides the switcher button in ColorPicker control.It helps to switch palette or picker mode in colorpicker.
- * @Default {true}
- */
- showSwitcher?: boolean;
-
- /** This property allows to shows tooltip to notify the slider value in color picker control.
- * @Default {false}
- */
- showTooltip?: boolean;
-
- /** Specifies the toolIcon to be displayed in dropdown control color area.
- * @Default {null}
- */
- toolIcon?: string;
-
- /** This property allows to define the customized text or content to displayed when mouse over the following elements. This property also allows to use the culture values.
- * @Default {{ switcher: Switcher, addbutton: Add Color, basic: Basic, monochrome: Mono Chrome, flatcolors: Flat Color, seawolf: Sea Wolf, webcolors: Web Colors,
- * sandy: Sandy, pinkshades: Pink Shades, misty: Misty, citrus: Citrus, vintage: Vintage, moonlight: Moon Light, candycrush: Candy Crush,
- * currentcolor: Current Color, selectedcolor: Selected Color }}
- */
- tooltipText?: TooltipText;
-
- /** Specifies the color value for color picker control, the value is in hexadecimal form with prefix of "#".
- * @Default {null}
- */
- value?: string;
-
- /** Fires after Color value has been changed successfully.If the user want to perform any operation after the color value changed then the user can make use of this change event. */
- change?(e: ChangeEventArgs): void;
-
- /** Fires after closing the color picker popup. */
- close?(e: CloseEventArgs): void;
-
- /** Fires after Color picker control is created. If the user want to perform any operation after the color picker control creation then the user can make use of this create event. */
- create?(e: CreateEventArgs): void;
-
- /** Fires after Color picker control is destroyed. If the user want to perform any operation after the color picker control destroyed then the user can make use of this destroy event. */
- destroy?(e: DestroyEventArgs): void;
-
- /** Fires after opening the color picker popup */
- open?(e: OpenEventArgs): void;
-
- /** Fires after Color value has been selected successfully. If the user want to perform any operation after the color value selected then the user can make use of this select event. */
- select?(e: SelectEventArgs): void;
-}
-
-export interface ChangeEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the color picker model
- */
- model?: ej.ColorPicker.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** return the changed color value
- */
- value?: string;
-}
+ /** List item object.
+ */
+ item?: any;
+
+ /** The Datasource of the listbox.
+ */
+ data?: any;
+
+ /** List item’s index.
+ */
+ index?: number;
+
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
+
+ /** Boolean value based on whether the list item is checked or not.
+ */
+ isChecked?: boolean;
+
+ /** Boolean value based on whether the list item is selected or not.
+ */
+ isSelected?: boolean;
+
+ /** Boolean value based on the list item is enabled or not.
+ */
+ isEnabled?: boolean;
+
+ /** List item’s text (label).
+ */
+ text?: string;
+
+ /** List item’s value.
+ */
+ value?: string;
+ }
+
+ export interface Fields {
+
+ /** Defines the specific field name which contains Boolean values to specify whether the list items to be checked by default or not.
+ */
+ checkBy?: boolean;
+
+ /** The grouping in the ListBox widget can be defined using this field.
+ */
+ groupBy?: string;
+
+ /** Defines the HTML attributes such as id, class, styles for the specific ListBox item.
+ */
+ htmlAttributes?: any;
+
+ /** Defines the specific field name which contains id values for the list items.
+ */
+ id?: string;
+
+ /** Defines the imageURL for the image to be displayed in the ListBox item.
+ */
+ imageUrl?: string;
+
+ /** Defines the image attributes such as height, width, styles and so on.
+ */
+ imageAttributes?: string;
+
+ /** Defines the specific field name which contains Boolean values to specify whether the list items to be selected by default or not.
+ */
+ selectBy?: boolean;
+
+ /** Defines the sprite CSS class for the image to be displayed.
+ */
+ spriteCssClass?: string;
+
+ /** Defines the table name to get the specific set of list items to be loaded in the ListBox widget while rendering with remote data.
+ */
+ tableName?: string;
+
+ /** Defines the specific field name in the data source to load the list with data.
+ */
+ text?: string;
+
+ /** Defines the specific field name in the data source to load the list with data value property.
+ */
+ value?: string;
+ }
+ }
+
+ class Calculate {
+ static fn: Calculate;
+ constructor(element: JQuery | Element, options?: Calculate.Model);
+ static Locale: any;
+ model: Calculate.Model;
+ defaults: Calculate.Model;
+
+ /** Add the custom formulas with function in CalcEngine library
+ * @param {string} pass the formula name
+ * @param {string} pass the custom function name to call
+ * @returns {void}
+ */
+ addCustomFunction(FormulaName: string, FunctionName: string): void;
+
+ /** Adds a named range to the NamedRanges collection
+ * @param {string} pass the namedRange's name
+ * @param {string} pass the cell range of NamedRange
+ * @returns {void}
+ */
+ addNamedRange(Name: string, cellRange: string): void;
+
+ /** Accepts a possible parsed formula and returns the calculated value without quotes.
+ * @param {string} pass the cell range to adjust its range
+ * @returns {string}
+ */
+ adjustRangeArg(Name: string): string;
+
+ /** When a formula cell changes, call this method to clear it from its dependent cells.
+ * @param {string} pass the changed cell address
+ * @returns {void}
+ */
+ clearFormulaDependentCells(Cell: string): void;
+
+ /** Call this method to clear whether an exception was raised during the computation of a library function.
+ * @returns {void}
+ */
+ clearLibraryComputationException(): void;
+
+ /** Get the column index from a cell reference passed in.
+ * @param {string} pass the cell address
+ * @returns {void}
+ */
+ colIndex(Cell: string): void;
+
+ /** Evaluates a parsed formula.
+ * @param {string} pass the parsed formula
+ * @returns {string}
+ */
+ computedValue(Formula: string): string;
+
+ /** Evaluates a parsed formula.
+ * @param {string} pass the parsed formula
+ * @returns {string}
+ */
+ computeFormula(Formula: string): string;
+ }
+ export namespace Calculate {
+
+ export interface Model {
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+ }
+ }
+
+ class CheckBox extends ej.Widget {
+ static fn: CheckBox;
+ constructor(element: JQuery | Element, options?: CheckBox.Model);
+ static Locale: any;
+ model: CheckBox.Model;
+ defaults: CheckBox.Model;
+
+ /** Destroy the CheckBox widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** Disable the CheckBox to prevent all user interactions.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** To enable the CheckBox
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** To Check the status of CheckBox
+ * @returns {boolean}
+ */
+ isChecked(): boolean;
+ }
+ export namespace CheckBox {
+
+ export interface Model {
+
+ /** Specifies whether CheckBox has to be in checked or not.
+ * We can also specify array of string as value for this property.
+ * If any of the value in the specified array matches the value of the textbox,
+ * then it will be considered as checked. It will be useful in MVVM binding,
+ * specify array type to identify the values of the checked CheckBoxes.
+ * @Default {false}
+ */
+ checked?: boolean | string[];
+
+ /** Specifies the State of CheckBox.See below to get available CheckState
+ * @Default {null}
+ */
+ checkState?: ej.CheckState | string;
+
+ /** Sets the root CSS class for CheckBox theme, which is used customize.
+ */
+ cssClass?: string;
+
+ /** Specifies the checkbox control state.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Specifies the persist property for CheckBox while initialization.
+ * The persist API save current model value to browser cookies for state maintains.
+ * While refreshing the CheckBox control page the model value apply from browser cookies.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Specify the Right to Left direction to Checkbox
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Specifies the enable or disable Tri-State for checkbox control.
+ * @Default {false}
+ */
+ enableTriState?: boolean;
+
+ /** It allows to define the characteristics of the CheckBox control. It will helps to extend the capability of an HTML element.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Specified value to be added an id attribute of the CheckBox.
+ * @Default {null}
+ */
+ id?: string;
+
+ /** Specify the prefix value of id to be added before the current id of the CheckBox.
+ * @Default {ej}
+ */
+ idPrefix?: string;
+
+ /** Specifies the name attribute of the CheckBox.
+ * @Default {null}
+ */
+ name?: string;
+
+ /** Displays rounded corner borders to CheckBox
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Specifies the size of the CheckBox.See below to know available CheckboxSize
+ * @Default {small}
+ */
+ size?: ej.CheckboxSize | string;
+
+ /** Specifies the text content to be displayed for CheckBox.
+ */
+ text?: string;
+
+ /** Set the jQuery validation error message in CheckBox.
+ * @Default {null}
+ */
+ validationMessage?: any;
+
+ /** Set the jQuery validation rules in CheckBox.
+ * @Default {null}
+ */
+ validationRules?: any;
+
+ /** Specifies the value attribute of the CheckBox.
+ * @Default {null}
+ */
+ value?: string;
+
+ /** Fires before the CheckBox is going to changed its state successfully */
+ beforeChange?(e: BeforeChangeEventArgs): void;
+
+ /** Fires when the CheckBox state is changed successfully */
+ change?(e: ChangeEventArgs): void;
+
+ /** Fires when the CheckBox state is created successfully */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when the CheckBox state is destroyed successfully */
+ destroy?(e: DestroyEventArgs): void;
+ }
+
+ export interface BeforeChangeEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the CheckBox model
+ */
+ model?: ej.CheckBox.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the event model values
+ */
+ event?: any;
+
+ /** returns the status whether the element is checked or not.
+ */
+ isChecked?: boolean;
+ }
+
+ export interface ChangeEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the CheckBox model
+ */
+ model?: ej.CheckBox.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the event arguments
+ */
+ event?: any;
+
+ /** returns the status whether the element is checked or not.
+ */
+ isChecked?: boolean;
+
+ /** returns the state of the checkbox
+ */
+ checkState?: string;
+ }
+
+ export interface CreateEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the CheckBox model
+ */
+ model?: ej.CheckBox.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the CheckBox model
+ */
+ model?: ej.CheckBox.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+ }
+ enum CheckState {
+ //string
+ Uncheck,
+ //string
+ Check,
+ //string
+ Indeterminate,
+ }
+ enum CheckboxSize {
+ //Displays the CheckBox in medium size
+ Medium,
+ //Displays the CheckBox in small size
+ Small,
+ }
+
+ class ColorPicker extends ej.Widget {
+ static fn: ColorPicker;
+ constructor(element: JQuery | Element, options?: ColorPicker.Model);
+ static Locale: any;
+ model: ColorPicker.Model;
+ defaults: ColorPicker.Model;
+
+ /** Disables the color picker control
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Enable the color picker control
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Gets the selected color in RGB format
+ * @returns {any}
+ */
+ getColor(): any;
+
+ /** Gets the selected color value as string
+ * @returns {string}
+ */
+ getValue(): string;
+
+ /** To Convert color value from hexCode to RGB
+ * @param {string} Specified HEX code converted to RGB
+ * @returns {any}
+ */
+ hexCodeToRGB(colorCode: string): any;
+
+ /** Hides the ColorPicker popup, if in opened state.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** Convert color value from HSV to RGB
+ * @param {any} Specified HSV code converted to RGB
+ * @returns {any}
+ */
+ HSVToRGB(HSV: any): any;
+
+ /** Convert color value from RGB to HEX
+ * @param {any} Specified RGB code converted to HEX code
+ * @returns {string}
+ */
+ RGBToHEX(RGB: any): string;
+
+ /** Convert color value from RGB to HSV
+ * @param {any} Specified RGB code converted to HSV code
+ * @returns {any}
+ */
+ RGBToHSV(RGB: any): any;
+
+ /** Open the ColorPicker popup.
+ * @returns {void}
+ */
+ show(): void;
+ }
+ export namespace ColorPicker {
+
+ export interface Model {
+
+ /** The ColorPicker control allows to define the customized text to displayed in button elements. Using the property to achieve the customized culture values.
+ * @Default {{ apply: Apply, cancel: Cancel, swatches: Swatches }}
+ */
+ buttonText?: ButtonText;
+
+ /** Allows to change the mode of the button. Please refer below to know available button mode
+ * @Default {ej.ButtonMode.Split}
+ */
+ buttonMode?: ej.ButtonMode | string;
+
+ /** Specifies the number of columns to be displayed color palette model.
+ * @Default {10}
+ */
+ columns?: number | string;
+
+ /** This property allows you to customize its appearance using user-defined CSS and custom skin options such as colors and backgrounds.
+ */
+ cssClass?: string;
+
+ /** This property allows to define the custom colors in the palette model.Custom palettes are created by passing a comma delimited string of HEX values or an array of colors.
+ * @Default {empty}
+ */
+ custom?: any[];
+
+ /** This property allows to embed the popup in the order of DOM element flow . When we set the value as true, the color picker popup is always in visible state.
+ * @Default {false}
+ */
+ displayInline?: boolean;
+
+ /** This property allows to change the control in enabled or disabled state.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** This property allows to enable or disable the opacity slider in the color picker control
+ * @Default {true}
+ */
+ enableOpacity?: boolean;
+
+ /** It allows to define the characteristics of the ColorPicker control. It will helps to extend the capability of an HTML element.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Defines the localized text values in button and tooltip.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Specifies the model type to be rendered initially in the color picker control. See below to get available ModelType
+ * @Default {ej.ColorPicker.ModelType.Default}
+ */
+ modelType?: ej.ColorPicker.ModelType | string;
+
+ /** This property allows to change the opacity value .The selected color opacity will be adjusted by using this opacity value.
+ * @Default {100}
+ */
+ opacityValue?: number | string;
+
+ /** Specifies the palette type to be displayed at initial time in palette model.There two types of palette model available in ColorPicker control. See below available Palette
+ * @Default {ej.ColorPicker.Palette.BasicPalette}
+ */
+ palette?: ej.ColorPicker.Palette | string;
+
+ /** This property allows to define the preset model to be rendered initially in palette type.It consists of 12 different types of presets. Each presets have 50 colors.
+ * See below available Presets
+ * @Default {ej.ColorPicker.Presets.Basic}
+ */
+ presetType?: ej.ColorPicker.Presets | string;
+
+ /** Allows to show/hides the apply and cancel buttons in ColorPicker control
+ * @Default {true}
+ */
+ showApplyCancel?: boolean;
+
+ /** Allows to show/hides the clear button in ColorPicker control
+ * @Default {true}
+ */
+ showClearButton?: boolean;
+
+ /** This property allows to provides live preview support for current cursor selection color and selected color.
+ * @Default {true}
+ */
+ showPreview?: boolean;
+
+ /** This property allows to store the color values in custom list.The ColorPicker will keep up to 11 colors in a custom list.
+ * By clicking the add button, the selected color from picker or palette will get added in the recent color list.
+ * @Default {false}
+ */
+ showRecentColors?: boolean;
+
+ /** Allows to show/hides the switcher button in ColorPicker control.It helps to switch palette or picker mode in colorpicker.
+ * @Default {true}
+ */
+ showSwitcher?: boolean;
+
+ /** This property allows to shows tooltip to notify the slider value in color picker control.
+ * @Default {false}
+ */
+ showTooltip?: boolean;
+
+ /** Specifies the toolIcon to be displayed in dropdown control color area.
+ * @Default {null}
+ */
+ toolIcon?: string;
+
+ /** This property allows to define the customized text or content to displayed when mouse over the following elements. This property also allows to use the culture values.
+ * @Default {{ switcher: Switcher, addbutton: Add Color, basic: Basic, monochrome: Mono Chrome, flatcolors: Flat Color, seawolf: Sea Wolf, webcolors: Web Colors,
+ * sandy: Sandy, pinkshades: Pink Shades, misty: Misty, citrus: Citrus, vintage: Vintage, moonlight: Moon Light, candycrush: Candy Crush,
+ * currentcolor: Current Color, selectedcolor: Selected Color }}
+ */
+ tooltipText?: TooltipText;
+
+ /** Specifies the color value for color picker control, the value is in hexadecimal form with prefix of "#".
+ * @Default {null}
+ */
+ value?: string;
+
+ /** Fires after Color value has been changed successfully.If the user want to perform any operation after the color value changed then the user can make use of this change event. */
+ change?(e: ChangeEventArgs): void;
+
+ /** Fires after closing the color picker popup. */
+ close?(e: CloseEventArgs): void;
+
+ /** Fires after Color picker control is created. If the user want to perform any operation after the color picker control creation then the user can make use of this create event. */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires after Color picker control is destroyed. If the user want to perform any operation after the color picker control destroyed then the user can make use of this destroy event. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Fires after opening the color picker popup */
+ open?(e: OpenEventArgs): void;
+
+ /** Fires after Color value has been selected successfully. If the user want to perform any operation after the color value selected then the user can make use of this select event. */
+ select?(e: SelectEventArgs): void;
+ }
+
+ export interface ChangeEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the color picker model
+ */
+ model?: ej.ColorPicker.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** return the changed color value
+ */
+ value?: string;
+ }
-export interface CloseEventArgs {
+ export interface CloseEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the color picker model
- */
- model?: ej.ColorPicker.Model;
+ /** returns the color picker model
+ */
+ model?: ej.ColorPicker.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the color picker model
- */
- model?: any;
+ /** returns the color picker model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the color picker model
- */
- model?: ej.ColorPicker.Model;
+ /** returns the color picker model
+ */
+ model?: ej.ColorPicker.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface OpenEventArgs {
+ export interface OpenEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the color picker model
- */
- model?: ej.ColorPicker.Model;
+ /** returns the color picker model
+ */
+ model?: ej.ColorPicker.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface SelectEventArgs {
+ export interface SelectEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the color picker model
- */
- model?: ej.ColorPicker.Model;
+ /** returns the color picker model
+ */
+ model?: ej.ColorPicker.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** return the selected color value
- */
- value?: string;
-}
+ /** return the selected color value
+ */
+ value?: string;
+ }
-export interface ButtonText {
+ export interface ButtonText {
- /** Sets the text for the apply button.
- */
- apply?: string;
+ /** Sets the text for the apply button.
+ */
+ apply?: string;
- /** Sets the text for the cancel button.
- */
- cancel?: string;
+ /** Sets the text for the cancel button.
+ */
+ cancel?: string;
- /** Sets the header text for the swatches area.
- */
- swatches?: string;
-}
+ /** Sets the header text for the swatches area.
+ */
+ swatches?: string;
+ }
-export interface TooltipText {
+ export interface TooltipText {
- /** Sets the tooltip text for the switcher button.
- */
- switcher?: string;
+ /** Sets the tooltip text for the switcher button.
+ */
+ switcher?: string;
- /** Sets the tooltip text for the add button.
- */
- addbutton?: string;
+ /** Sets the tooltip text for the add button.
+ */
+ addbutton?: string;
- /** Sets the tooltip text for the basic preset.
- */
- basic?: string;
+ /** Sets the tooltip text for the basic preset.
+ */
+ basic?: string;
- /** Sets the tooltip text for the mono chrome preset.
- */
- monochrome?: string;
+ /** Sets the tooltip text for the mono chrome preset.
+ */
+ monochrome?: string;
- /** Sets the tooltip text for the flat colors preset.
- */
- flatcolors?: string;
+ /** Sets the tooltip text for the flat colors preset.
+ */
+ flatcolors?: string;
- /** Sets the tooltip text for the sea wolf preset.
- */
- seawolf?: string;
+ /** Sets the tooltip text for the sea wolf preset.
+ */
+ seawolf?: string;
- /** Sets the tooltip text for the web colors preset.
- */
- webcolors?: string;
+ /** Sets the tooltip text for the web colors preset.
+ */
+ webcolors?: string;
- /** Sets the tooltip text for the sandy preset.
- */
- sandy?: string;
+ /** Sets the tooltip text for the sandy preset.
+ */
+ sandy?: string;
- /** Sets the tooltip text for the pink shades preset.
- */
- pinkshades?: string;
+ /** Sets the tooltip text for the pink shades preset.
+ */
+ pinkshades?: string;
- /** Sets the tooltip text for the misty preset.
- */
- misty?: string;
+ /** Sets the tooltip text for the misty preset.
+ */
+ misty?: string;
- /** Sets the tooltip text for the citrus preset.
- */
- citrus?: string;
+ /** Sets the tooltip text for the citrus preset.
+ */
+ citrus?: string;
- /** Sets the tooltip text for the vintage preset.
- */
- vintage?: string;
+ /** Sets the tooltip text for the vintage preset.
+ */
+ vintage?: string;
- /** Sets the tooltip text for the moon light preset.
- */
- moonlight?: string;
+ /** Sets the tooltip text for the moon light preset.
+ */
+ moonlight?: string;
- /** Sets the tooltip text for the candy crush preset.
- */
- candycrush?: string;
+ /** Sets the tooltip text for the candy crush preset.
+ */
+ candycrush?: string;
- /** Sets the tooltip text for the current color area.
- */
- currentcolor?: string;
+ /** Sets the tooltip text for the current color area.
+ */
+ currentcolor?: string;
- /** Sets the tooltip text for the selected color area.
- */
- selectedcolor?: string;
-}
+ /** Sets the tooltip text for the selected color area.
+ */
+ selectedcolor?: string;
+ }
-enum ModelType {
+ enum ModelType {
- ///support palette type mode in color picker.
- Palette,
+ ///support palette type mode in color picker.
+ Palette,
- ///support palette type mode in color picker.
- Picker
-}
+ ///support palette type mode in color picker.
+ Picker
+ }
-enum Palette {
+ enum Palette {
- ///used to show the basic palette
- BasicPalette,
+ ///used to show the basic palette
+ BasicPalette,
- ///used to show the custompalette
- CustomPalette
-}
+ ///used to show the custompalette
+ CustomPalette
+ }
-enum Presets {
+ enum Presets {
- ///used to show the basic presets
- Basic,
+ ///used to show the basic presets
+ Basic,
- ///used to show the CandyCrush colors presets
- CandyCrush,
+ ///used to show the CandyCrush colors presets
+ CandyCrush,
- ///used to show the Citrus colors presets
- Citrus,
+ ///used to show the Citrus colors presets
+ Citrus,
- ///used to show the FlatColors presets
- FlatColors,
+ ///used to show the FlatColors presets
+ FlatColors,
- ///used to show the Misty presets
- Misty,
+ ///used to show the Misty presets
+ Misty,
- ///used to show the MoonLight presets
- MoonLight,
-
- ///used to show the PinkShades presets
- PinkShades,
+ ///used to show the MoonLight presets
+ MoonLight,
+
+ ///used to show the PinkShades presets
+ PinkShades,
- ///used to show the Sandy presets
- Sandy,
+ ///used to show the Sandy presets
+ Sandy,
- ///used to show the Seawolf presets
- SeaWolf,
-
- ///used to show the Vintage presets
- Vintage,
-
- ///used to show the WebColors presets
- WebColors
-}
-
-}
-enum ButtonMode {
-//Displays the button in split mode
-Split,
-//Displays the button in Dropdown mode
-Dropdown,
-}
-
-class FileExplorer extends ej.Widget {
- static fn: FileExplorer;
- constructor(element: JQuery | Element, options?: FileExplorer.Model);
- static Locale: any;
- model: FileExplorer.Model;
- defaults: FileExplorer.Model;
-
- /** Refresh the size of FileExplorer control.
- * @returns {void}
- */
- adjustSize(): void;
-
- /** Disable the particular context menu item.
- * @param {string|HTMLElement} Id of the menu item/ Menu element to be disabled
- * @returns {void}
- */
- disableMenuItem(item: string|HTMLElement): void;
-
- /** Disable the particular toolbar item.
- * @param {string|HTMLElement} Id of the toolbar item/ Tool item element to be disabled
- * @returns {void}
- */
- disableToolbarItem(item: string|HTMLElement): void;
-
- /** Enable the particular context menu item.
- * @param {string|HTMLElement} Id of the menu item/ Menu element to be Enabled
- * @returns {void}
- */
- enableMenuItem(item: string|HTMLElement): void;
-
- /** Enable the particular toolbar item
- * @param {string|HTMLElement} Id of the tool item/ Tool item element to be Enabled
- * @returns {void}
- */
- enableToolbarItem(item: string|HTMLElement): void;
-
- /** Refresh the content of the selected folder in FileExplorer control.
- * @returns {void}
- */
- refresh(): void;
-
- /** Remove the particular toolbar item.
- * @param {string|HTMLElement} Id of the tool item/ tool item element to be removed
- * @returns {void}
- */
- removeToolbarItem(item: string|HTMLElement): void;
-}
-export namespace FileExplorer {
-
-export interface Model {
-
- /** Sets the URL of server side AJAX handling method that handles file operation like Read, Remove, Rename, Create, Upload, Download, Copy and Move in FileExplorer.
- */
- ajaxAction?: string;
-
- /** Specifies the data type of server side AJAX handling method.
- * @Default {json}
- */
- ajaxDataType?: string;
-
- /** By using ajaxSettings property, you can customize the AJAX configurations. Normally you can customize the following option in AJAX handling data, URL, type, async, contentType, dataType and
- * success. For upload, download and getImage API, you can only customize URL.
- * @Default {{ read: {}, createFolder: {}, remove: {}, rename: {}, paste: {}, getDetails: {}, download: {}, upload: {}, getImage: {}, search: {}}}
- */
- ajaxSettings?: any;
-
- /** The FileExplorer allows to move the files from one folder to another folder of FileExplorer by using drag and drop option. Also it supports to upload a file by dragging it
- * from windows explorer to the necessary folder of ejFileExplorer.
- * @Default {true}
- */
- allowDragAndDrop?: boolean;
-
- /** Gets or sets a value that indicates whether to enable keyboard support for FileExplorer actions.
- * @Default {true}
- */
- allowKeyboardNavigation?: boolean;
-
- /** The FileExplorer allows to select multiple files by enabling the allowMultiSelection property. You can perform multi selection by pressing the Ctrl key or Shift key.
- * @Default {true}
- */
- allowMultiSelection?: boolean;
-
- /** By using the contextMenuSettings property, you can customize the ContextMenu in the FileExplorer control.
- */
- contextMenuSettings?: ContextMenuSettings;
-
- /** Sets the root class for FileExplorer theme. This cssClass API allows to use custom skinning option for File Explorer control.
- * By defining the root class by using this API, you have to include this root class in CSS.
- */
- cssClass?: string;
-
- /** Specify the enablePersistence to FileExplorer to save the current model value in browser cookies for state maintains.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Enables or disables the resize support in FileExplorer control.
- * @Default {false}
- */
- enableResize?: boolean;
-
- /** Enables or disables the Right to Left alignment support in FileExplorer control.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Enables or disables the thumbnail image compression option in FileExplorer control. By enabling this option, you can reduce the thumbnail image size while loading.
- * @Default {false}
- */
- enableThumbnailCompress?: boolean;
-
- /** Allows specified type of files only to display in FileExplorer control.
- * @Default {.}
- */
- fileTypes?: string;
-
- /** By using filterSettings property, you can customize the search functionality of the search bar in FileExplorer control.
- */
- filterSettings?: FilterSettings;
-
- /** By using the gridSettings property, you can customize the grid behavior in the FileExplorer control.
- */
- gridSettings?: GridSettings;
-
- /** Specifies the height of FileExplorer control.
- * @Default {400}
- */
- height?: string|number;
-
- /** Enables or disables the responsive support for FileExplorer control during the window resizing time.
- * @Default {false}
- */
- isResponsive?: boolean;
-
- /** Sets the file view type. There are three view types available such as Grid, Tile and Large icons. See layoutType.
- * @Default {ej.FileExplorer.layoutType.Grid}
- */
- layout?: ej.FileExplorer.layoutType|string;
-
- /** Sets the culture in FileExplorer.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Sets the maximum height of FileExplorer control.
- * @Default {null}
- */
- maxHeight?: string|number;
-
- /** Sets the maximum width of FileExplorer control.
- * @Default {null}
- */
- maxWidth?: string|number;
-
- /** Sets the minimum height of FileExplorer control.
- * @Default {250px}
- */
- minHeight?: string|number;
-
- /** Sets the minimum width of FileExplorer control.
- * @Default {400px}
- */
- minWidth?: string|number;
-
- /** The property path denotes the filesystem path that are to be explored. The path for the filesystem can be physical path or relative path, but it has to be relevant to where the Web API is hosted.
- */
- path?: string;
-
- /** The selectedFolder is used to select the specified folder of FileExplorer control.
- */
- selectedFolder?: string;
-
- /** The selectedItems is used to select the specified items (file, folder) of FileExplorer control.
- */
- selectedItems?: string|any[];
-
- /** Enables or disables the checkbox option in FileExplorer control.
- * @Default {true}
- */
- showCheckbox?: boolean;
-
- /** Enables or disables the context menu option in FileExplorer control.
- * @Default {true}
- */
- showContextMenu?: boolean;
-
- /** Enables or disables the footer in FileExplorer control. The footer element displays the details of the current selected files and folders.
- * And also the footer having the switcher to change the layout view.
- * @Default {true}
- */
- showFooter?: boolean;
-
- /** FileExplorer control is displayed with rounded corner when this property is set to true.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** FileExplorer control is rendered with thumbnail preview of images in Tile and LargeIcons layout when this property set to true.
- * @Default {true}
- */
- showThumbnail?: boolean;
-
- /** Shows or disables the toolbar in FileExplorer control.
- * @Default {true}
- */
- showToolbar?: boolean;
+ ///used to show the Seawolf presets
+ SeaWolf,
+
+ ///used to show the Vintage presets
+ Vintage,
+
+ ///used to show the WebColors presets
+ WebColors
+ }
+
+ }
+ enum ButtonMode {
+ //Displays the button in split mode
+ Split,
+ //Displays the button in Dropdown mode
+ Dropdown,
+ }
+
+ class FileExplorer extends ej.Widget {
+ static fn: FileExplorer;
+ constructor(element: JQuery | Element, options?: FileExplorer.Model);
+ static Locale: any;
+ model: FileExplorer.Model;
+ defaults: FileExplorer.Model;
+
+ /** Refresh the size of FileExplorer control.
+ * @returns {void}
+ */
+ adjustSize(): void;
+
+ /** Disable the particular context menu item.
+ * @param {string|HTMLElement} Id of the menu item/ Menu element to be disabled
+ * @returns {void}
+ */
+ disableMenuItem(item: string | HTMLElement): void;
+
+ /** Disable the particular toolbar item.
+ * @param {string|HTMLElement} Id of the toolbar item/ Tool item element to be disabled
+ * @returns {void}
+ */
+ disableToolbarItem(item: string | HTMLElement): void;
+
+ /** Enable the particular context menu item.
+ * @param {string|HTMLElement} Id of the menu item/ Menu element to be Enabled
+ * @returns {void}
+ */
+ enableMenuItem(item: string | HTMLElement): void;
+
+ /** Enable the particular toolbar item
+ * @param {string|HTMLElement} Id of the tool item/ Tool item element to be Enabled
+ * @returns {void}
+ */
+ enableToolbarItem(item: string | HTMLElement): void;
+
+ /** Refresh the content of the selected folder in FileExplorer control.
+ * @returns {void}
+ */
+ refresh(): void;
+
+ /** Remove the particular toolbar item.
+ * @param {string|HTMLElement} Id of the tool item/ tool item element to be removed
+ * @returns {void}
+ */
+ removeToolbarItem(item: string | HTMLElement): void;
+ }
+ export namespace FileExplorer {
+
+ export interface Model {
+
+ /** Sets the URL of server side AJAX handling method that handles file operation like Read, Remove, Rename, Create, Upload, Download, Copy and Move in FileExplorer.
+ */
+ ajaxAction?: string;
+
+ /** Specifies the data type of server side AJAX handling method.
+ * @Default {json}
+ */
+ ajaxDataType?: string;
+
+ /** By using ajaxSettings property, you can customize the AJAX configurations. Normally you can customize the following option in AJAX handling data, URL, type, async, contentType, dataType and
+ * success. For upload, download and getImage API, you can only customize URL.
+ * @Default {{ read: {}, createFolder: {}, remove: {}, rename: {}, paste: {}, getDetails: {}, download: {}, upload: {}, getImage: {}, search: {}}}
+ */
+ ajaxSettings?: any;
+
+ /** The FileExplorer allows to move the files from one folder to another folder of FileExplorer by using drag and drop option. Also it supports to upload a file by dragging it
+ * from windows explorer to the necessary folder of ejFileExplorer.
+ * @Default {true}
+ */
+ allowDragAndDrop?: boolean;
+
+ /** Gets or sets a value that indicates whether to enable keyboard support for FileExplorer actions.
+ * @Default {true}
+ */
+ allowKeyboardNavigation?: boolean;
+
+ /** The FileExplorer allows to select multiple files by enabling the allowMultiSelection property. You can perform multi selection by pressing the Ctrl key or Shift key.
+ * @Default {true}
+ */
+ allowMultiSelection?: boolean;
+
+ /** By using the contextMenuSettings property, you can customize the ContextMenu in the FileExplorer control.
+ */
+ contextMenuSettings?: ContextMenuSettings;
+
+ /** Sets the root class for FileExplorer theme. This cssClass API allows to use custom skinning option for File Explorer control.
+ * By defining the root class by using this API, you have to include this root class in CSS.
+ */
+ cssClass?: string;
+
+ /** Specify the enablePersistence to FileExplorer to save the current model value in browser cookies for state maintains.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Enables or disables the resize support in FileExplorer control.
+ * @Default {false}
+ */
+ enableResize?: boolean;
+
+ /** Enables or disables the Right to Left alignment support in FileExplorer control.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Enables or disables the thumbnail image compression option in FileExplorer control. By enabling this option, you can reduce the thumbnail image size while loading.
+ * @Default {false}
+ */
+ enableThumbnailCompress?: boolean;
+
+ /** Allows specified type of files only to display in FileExplorer control.
+ * @Default {.}
+ */
+ fileTypes?: string;
+
+ /** By using filterSettings property, you can customize the search functionality of the search bar in FileExplorer control.
+ */
+ filterSettings?: FilterSettings;
+
+ /** By using the gridSettings property, you can customize the grid behavior in the FileExplorer control.
+ */
+ gridSettings?: GridSettings;
+
+ /** Specifies the height of FileExplorer control.
+ * @Default {400}
+ */
+ height?: string | number;
+
+ /** Enables or disables the responsive support for FileExplorer control during the window resizing time.
+ * @Default {false}
+ */
+ isResponsive?: boolean;
+
+ /** Sets the file view type. There are three view types available such as Grid, Tile and Large icons. See layoutType.
+ * @Default {ej.FileExplorer.layoutType.Grid}
+ */
+ layout?: ej.FileExplorer.layoutType | string;
+
+ /** Sets the culture in FileExplorer.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Sets the maximum height of FileExplorer control.
+ * @Default {null}
+ */
+ maxHeight?: string | number;
+
+ /** Sets the maximum width of FileExplorer control.
+ * @Default {null}
+ */
+ maxWidth?: string | number;
+
+ /** Sets the minimum height of FileExplorer control.
+ * @Default {250px}
+ */
+ minHeight?: string | number;
+
+ /** Sets the minimum width of FileExplorer control.
+ * @Default {400px}
+ */
+ minWidth?: string | number;
+
+ /** The property path denotes the filesystem path that are to be explored. The path for the filesystem can be physical path or relative path,
+ * but it has to be relevant to where the Web API is hosted.
+ */
+ path?: string;
+
+ /** The selectedFolder is used to select the specified folder of FileExplorer control.
+ */
+ selectedFolder?: string;
+
+ /** The selectedItems is used to select the specified items (file, folder) of FileExplorer control.
+ */
+ selectedItems?: string | any[];
+
+ /** Enables or disables the checkbox option in FileExplorer control.
+ * @Default {true}
+ */
+ showCheckbox?: boolean;
+
+ /** Enables or disables the context menu option in FileExplorer control.
+ * @Default {true}
+ */
+ showContextMenu?: boolean;
+
+ /** Enables or disables the footer in FileExplorer control. The footer element displays the details of the current selected files and folders.
+ * And also the footer having the switcher to change the layout view.
+ * @Default {true}
+ */
+ showFooter?: boolean;
+
+ /** FileExplorer control is displayed with rounded corner when this property is set to true.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** FileExplorer control is rendered with thumbnail preview of images in Tile and LargeIcons layout when this property set to true.
+ * @Default {true}
+ */
+ showThumbnail?: boolean;
+
+ /** Shows or disables the toolbar in FileExplorer control.
+ * @Default {true}
+ */
+ showToolbar?: boolean;
- /** Enables or disables the navigation pane in FileExplorer control. The navigation pane contains a tree view element that displays all the folders from the filesystem in a hierarchical manner.
- * This is useful to a quick navigation of any folder in the filesystem.
- * @Default {true}
- */
- showNavigationPane?: boolean;
+ /** Enables or disables the navigation pane in FileExplorer control. The navigation pane contains a tree view element that displays all the folders from the filesystem in a hierarchical manner.
+ * This is useful to a quick navigation of any folder in the filesystem.
+ * @Default {true}
+ */
+ showNavigationPane?: boolean;
- /** The tools property is used to configure and group required toolbar items in FileExplorer control.
- * @Default {{ creation: [NewFolder], navigation: [Back, Forward, Upward], addressBar: [Addressbar], editing: [Refresh, Upload, Delete, Rename, Download], copyPaste: [Cut, Copy, Paste],
- * getProperties: [Details], searchBar: [Searchbar], layout: [Layout], sortBy: [SortBy]}}
- */
- tools?: any;
+ /** The tools property is used to configure and group required toolbar items in FileExplorer control.
+ * @Default {{ creation: [NewFolder], navigation: [Back, Forward, Upward], addressBar: [Addressbar], editing: [Refresh, Upload, Delete, Rename, Download], copyPaste: [Cut, Copy, Paste],
+ * getProperties: [Details], searchBar: [Searchbar], layout: [Layout], sortBy: [SortBy]}}
+ */
+ tools?: any;
- /** The toolsList property is used to arrange the toolbar items in the FileExplorer control.
- * @Default {[layout, creation, navigation, addressBar, editing, copyPaste, sortBy, getProperties, searchBar]}
- */
- toolsList?: any[];
+ /** The toolsList property is used to arrange the toolbar items in the FileExplorer control.
+ * @Default {[layout, creation, navigation, addressBar, editing, copyPaste, sortBy, getProperties, searchBar]}
+ */
+ toolsList?: any[];
- /** Gets or sets an object that indicates whether to customize the upload behavior in the FileExplorer.
- */
- uploadSettings?: UploadSettings;
+ /** Gets or sets an object that indicates whether to customize the upload behavior in the FileExplorer.
+ */
+ uploadSettings?: UploadSettings;
- /** Specifies the width of FileExplorer control.
- * @Default {850}
- */
- width?: string|number;
+ /** Specifies the width of FileExplorer control.
+ * @Default {850}
+ */
+ width?: string | number;
- /** Fires before the AJAX request is performed. */
- beforeAjaxRequest?(e: BeforeAjaxRequestEventArgs): void;
+ /** Fires before the AJAX request is performed. */
+ beforeAjaxRequest?(e: BeforeAjaxRequestEventArgs): void;
- /** Fires before downloading the files. */
- beforeDownload?(e: BeforeDownloadEventArgs): void;
+ /** Fires before downloading the files. */
+ beforeDownload?(e: BeforeDownloadEventArgs): void;
- /** Fires before getting a requested image from server. Also this event will be triggered when you have enabled thumbnail image compression option in FileExplorer.
- * Using this event, you can customize the image compression size.
- */
- beforeGetImage?(e: BeforeGetImageEventArgs): void;
+ /** Fires before getting a requested image from server. Also this event will be triggered when you have enabled thumbnail image compression option in FileExplorer.
+ * Using this event, you can customize the image compression size.
+ */
+ beforeGetImage?(e: BeforeGetImageEventArgs): void;
- /** Fires before files or folders open. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ /** Fires before files or folders open. */
+ beforeOpen?(e: BeforeOpenEventArgs): void;
- /** Fires before uploading the files. */
- beforeUpload?(e: BeforeUploadEventArgs): void;
+ /** Fires before uploading the files. */
+ beforeUpload?(e: BeforeUploadEventArgs): void;
- /** Fires when FileExplorer control was created */
- create?(e: CreateEventArgs): void;
+ /** Fires when FileExplorer control was created */
+ create?(e: CreateEventArgs): void;
- /** Fires when file or folder is copied successfully. */
- copy?(e: CopyEventArgs): void;
+ /** Fires when file or folder is copied successfully. */
+ copy?(e: CopyEventArgs): void;
- /** Fires when new folder is created successfully in file system. */
- createFolder?(e: CreateFolderEventArgs): void;
+ /** Fires when new folder is created successfully in file system. */
+ createFolder?(e: CreateFolderEventArgs): void;
- /** Fires when file or folder is cut successfully. */
- cut?(e: CutEventArgs): void;
+ /** Fires when file or folder is cut successfully. */
+ cut?(e: CutEventArgs): void;
- /** Fires when the FileExplorer is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ /** Fires when the FileExplorer is destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
- /** Fires when the files or directory has been started to drag over on the FileExplorer */
- dragStart?(e: DragStartEventArgs): void;
+ /** Fires when the files or directory has been started to drag over on the FileExplorer */
+ dragStart?(e: DragStartEventArgs): void;
- /** Fires when the files or directory is dragging over on the FileExplorer. */
- drag?(e: DragEventArgs): void;
+ /** Fires when the files or directory is dragging over on the FileExplorer. */
+ drag?(e: DragEventArgs): void;
- /** Fires when the files or directory has been stopped to drag over on FileExplorer */
- dragStop?(e: DragStopEventArgs): void;
+ /** Fires when the files or directory has been stopped to drag over on FileExplorer */
+ dragStop?(e: DragStopEventArgs): void;
- /** Fires when the files or directory is dropped to the target folder of FileExplorer */
- drop?(e: DropEventArgs): void;
+ /** Fires when the files or directory is dropped to the target folder of FileExplorer */
+ drop?(e: DropEventArgs): void;
- /** Fires after loading the requested image from server. Using this event, you can get the details of loaded image. */
- getImage?(e: GetImageEventArgs): void;
+ /** Fires after loading the requested image from server. Using this event, you can get the details of loaded image. */
+ getImage?(e: GetImageEventArgs): void;
- /** Fires when keydown in FileExplorer control. */
- keydown?(e: KeydownEventArgs): void;
+ /** Fires when keydown in FileExplorer control. */
+ keydown?(e: KeydownEventArgs): void;
- /** Fires when the file view type is changed. */
- layoutChange?(e: LayoutChangeEventArgs): void;
+ /** Fires when the file view type is changed. */
+ layoutChange?(e: LayoutChangeEventArgs): void;
- /** Fires when before the ContextMenu opening. */
- menuBeforeOpen?(e: MenuBeforeOpenEventArgs): void;
+ /** Fires when before the ContextMenu opening. */
+ menuBeforeOpen?(e: MenuBeforeOpenEventArgs): void;
- /** Fires when click the ContextMenu item. */
- menuClick?(e: MenuClickEventArgs): void;
+ /** Fires when click the ContextMenu item. */
+ menuClick?(e: MenuClickEventArgs): void;
- /** Fires when ContextMenu is successfully opened. */
- menuOpen?(e: MenuOpenEventArgs): void;
+ /** Fires when ContextMenu is successfully opened. */
+ menuOpen?(e: MenuOpenEventArgs): void;
- /** Fires when files are successfully opened. */
- open?(e: OpenEventArgs): void;
+ /** Fires when files are successfully opened. */
+ open?(e: OpenEventArgs): void;
- /** Fires when a file or folder is pasted successfully. */
- paste?(e: PasteEventArgs): void;
+ /** Fires when a file or folder is pasted successfully. */
+ paste?(e: PasteEventArgs): void;
- /** Fires when file or folder is deleted successfully. */
- remove?(e: RemoveEventArgs): void;
+ /** Fires when file or folder is deleted successfully. */
+ remove?(e: RemoveEventArgs): void;
- /** Fires when resizing is performed for FileExplorer. */
- resize?(e: ResizeEventArgs): void;
+ /** Fires when resizing is performed for FileExplorer. */
+ resize?(e: ResizeEventArgs): void;
- /** Fires when resizing is started for FileExplorer. */
- resizeStart?(e: ResizeStartEventArgs): void;
+ /** Fires when resizing is started for FileExplorer. */
+ resizeStart?(e: ResizeStartEventArgs): void;
- /** Fires this event when the resizing is stopped for FileExplorer. */
- resizeStop?(e: ResizeStopEventArgs): void;
+ /** Fires this event when the resizing is stopped for FileExplorer. */
+ resizeStop?(e: ResizeStopEventArgs): void;
- /** Fires when the items from grid view or tile view of FileExplorer control is selected. */
- select?(e: SelectEventArgs): void;
+ /** Fires when the items from grid view or tile view of FileExplorer control is selected. */
+ select?(e: SelectEventArgs): void;
- /** Triggered when refresh the template column elements in the grid view of FileExplorer control. */
- templateRefresh?(e: TemplateRefreshEventArgs): void;
+ /** Triggered when refresh the template column elements in the grid view of FileExplorer control. */
+ templateRefresh?(e: TemplateRefreshEventArgs): void;
- /** Fires when the items from grid view or tile view or large icons view of FileExplorer control is unselected. */
- unselect?(e: UnselectEventArgs): void;
-}
+ /** Fires when the items from grid view or tile view or large icons view of FileExplorer control is unselected. */
+ unselect?(e: UnselectEventArgs): void;
+ }
-export interface BeforeAjaxRequestEventArgs {
+ export interface BeforeAjaxRequestEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the AJAX request data
- */
- data?: any;
+ /** returns the AJAX request data
+ */
+ data?: any;
- /** returns the FileExplorer model
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface BeforeDownloadEventArgs {
+ export interface BeforeDownloadEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the downloaded file names.
- */
- files?: string[];
+ /** returns the downloaded file names.
+ */
+ files?: string[];
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the path of currently opened item.
- */
- path?: string;
+ /** returns the path of currently opened item.
+ */
+ path?: string;
- /** returns the selected item details.
- */
- selectedItems?: any;
+ /** returns the selected item details.
+ */
+ selectedItems?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface BeforeGetImageEventArgs {
+ export interface BeforeGetImageEventArgs {
- /** set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** enable or disable the image compress option.
- */
- canCompress?: boolean;
+ /** enable or disable the image compress option.
+ */
+ canCompress?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the expected image size.
- */
- size?: any;
+ /** returns the expected image size.
+ */
+ size?: any;
- /** returns the selected item details.
- */
- selectedItems?: any;
+ /** returns the selected item details.
+ */
+ selectedItems?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface BeforeOpenEventArgs {
+ export interface BeforeOpenEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the opened item type.
- */
- itemType?: string;
+ /** returns the opened item type.
+ */
+ itemType?: string;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the path of currently opened item.
- */
- path?: string;
+ /** returns the path of currently opened item.
+ */
+ path?: string;
- /** returns the selected item details.
- */
- selectedItems?: any;
+ /** returns the selected item details.
+ */
+ selectedItems?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface BeforeUploadEventArgs {
+ export interface BeforeUploadEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the path of currently opened item.
- */
- path?: string;
+ /** returns the path of currently opened item.
+ */
+ path?: string;
- /** returns the selected item details.
- */
- selectedItems?: any;
+ /** returns the selected item details.
+ */
+ selectedItems?: any;
- /** returns the upload item details.
- */
- uploadItemDetails?: any;
+ /** returns the upload item details.
+ */
+ uploadItemDetails?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface CopyEventArgs {
+ export interface CopyEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of copied file/folder.
- */
- name?: string[];
+ /** returns the name of copied file/folder.
+ */
+ name?: string[];
- /** returns the selected item details.
- */
- selectedItems?: any;
+ /** returns the selected item details.
+ */
+ selectedItems?: any;
- /** returns the source path.
- */
- sourcePath?: string;
+ /** returns the source path.
+ */
+ sourcePath?: string;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface CreateFolderEventArgs {
+ export interface CreateFolderEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the AJAX response data
- */
- data?: any;
+ /** returns the AJAX response data
+ */
+ data?: any;
- /** returns the FileExplorer model
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the selected item details
- */
- selectedItems?: any;
+ /** returns the selected item details
+ */
+ selectedItems?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface CutEventArgs {
+ export interface CutEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of moved file or folder.
- */
- name?: string[];
+ /** returns the name of moved file or folder.
+ */
+ name?: string[];
- /** returns the selected item details.
- */
- selectedItems?: any;
+ /** returns the selected item details.
+ */
+ selectedItems?: any;
- /** returns the source path.
- */
- sourcePath?: string;
+ /** returns the source path.
+ */
+ sourcePath?: string;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface DragStartEventArgs {
+ export interface DragStartEventArgs {
- /** set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the dragging element.
- */
- target?: any;
+ /** returns the dragging element.
+ */
+ target?: any;
- /** returns the path of dragging element.
- */
- targetPath?: string;
+ /** returns the path of dragging element.
+ */
+ targetPath?: string;
- /** returns the dragging file details.
- */
- selectedItems?: any;
-}
+ /** returns the dragging file details.
+ */
+ selectedItems?: any;
+ }
-export interface DragEventArgs {
+ export interface DragEventArgs {
- /** set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the target element.
- */
- target?: any;
+ /** returns the target element.
+ */
+ target?: any;
- /** returns the name of target element.
- */
- targetElementName?: string;
+ /** returns the name of target element.
+ */
+ targetElementName?: string;
- /** returns the path of target element.
- */
- targetPath?: string;
-}
+ /** returns the path of target element.
+ */
+ targetPath?: string;
+ }
-export interface DragStopEventArgs {
+ export interface DragStopEventArgs {
- /** set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the target element.
- */
- target?: any;
+ /** returns the target element.
+ */
+ target?: any;
- /** returns the path of target element.
- */
- targetPath?: string;
+ /** returns the path of target element.
+ */
+ targetPath?: string;
- /** returns the name of target element
- */
- targetElementName?: string;
+ /** returns the name of target element
+ */
+ targetElementName?: string;
- /** returns the action, which is performed after dropping the files (upload/ move).
- */
- dropAction?: string;
+ /** returns the action, which is performed after dropping the files (upload/ move).
+ */
+ dropAction?: string;
- /** returns the dragging file details
- */
- fileInfo?: any;
-}
+ /** returns the dragging file details
+ */
+ fileInfo?: any;
+ }
-export interface DropEventArgs {
+ export interface DropEventArgs {
- /** set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the target element.
- */
- target?: any;
+ /** returns the target element.
+ */
+ target?: any;
- /** returns the name of target folder.
- */
- targetFolder?: string;
+ /** returns the name of target folder.
+ */
+ targetFolder?: string;
- /** returns the path of target folder.
- */
- targetPath?: string;
+ /** returns the path of target folder.
+ */
+ targetPath?: string;
- /** returns the dragging element details.
- */
- fileInfo?: any;
+ /** returns the dragging element details.
+ */
+ fileInfo?: any;
- /** returns the action, which is performed after dropping the files (upload/ move).
- */
- dropAction?: string;
-}
+ /** returns the action, which is performed after dropping the files (upload/ move).
+ */
+ dropAction?: string;
+ }
-export interface GetImageEventArgs {
+ export interface GetImageEventArgs {
- /** set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** loaded image path.
- */
- path?: string;
+ /** loaded image path.
+ */
+ path?: string;
- /** loaded image element
- */
- element?: any;
+ /** loaded image element
+ */
+ element?: any;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** original arguments of image load or error event
- */
- originalArgs?: any;
+ /** original arguments of image load or error event
+ */
+ originalArgs?: any;
- /** returns the action type, which specifies thumbnail preview or opening image.
- */
- action?: string;
+ /** returns the action type, which specifies thumbnail preview or opening image.
+ */
+ action?: string;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface KeydownEventArgs {
+ export interface KeydownEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the downed key keyCode value
- */
- keyCode?: number;
+ /** returns the downed key keyCode value
+ */
+ keyCode?: number;
- /** returns altKey value.
- */
- altKey?: boolean;
+ /** returns altKey value.
+ */
+ altKey?: boolean;
- /** returns shiftKey value.
- */
- shiftKey?: boolean;
+ /** returns shiftKey value.
+ */
+ shiftKey?: boolean;
- /** returns ctrlKey value.
- */
- ctrlKey?: boolean;
+ /** returns ctrlKey value.
+ */
+ ctrlKey?: boolean;
- /** returns the event object.
- */
- originalArgs?: any;
+ /** returns the event object.
+ */
+ originalArgs?: any;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface LayoutChangeEventArgs {
+ export interface LayoutChangeEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** return true when we change the layout via interaction, else false.
- */
- isInteraction?: boolean;
+ /** return true when we change the layout via interaction, else false.
+ */
+ isInteraction?: boolean;
- /** returns the current view type.
- */
- layoutType?: string;
+ /** returns the current view type.
+ */
+ layoutType?: string;
- /** returns the FileExplorer model.
- */
- model?: any;
+ /** returns the FileExplorer model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface MenuBeforeOpenEventArgs {
+ export interface MenuBeforeOpenEventArgs {
- /** set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the name of ContextMenu items group.
- */
- contextMenu?: string;
+ /** returns the name of ContextMenu items group.
+ */
+ contextMenu?: string;
- /** returns the dataSource of ContextMenu.
- */
- dataSource?: any[];
+ /** returns the dataSource of ContextMenu.
+ */
+ dataSource?: any[];
- /** returns the element of ContextMenu.
- */
- element?: any;
+ /** returns the element of ContextMenu.
+ */
+ element?: any;
- /** returns the event of ContextMenu.
- */
- events?: any;
+ /** returns the event of ContextMenu.
+ */
+ events?: any;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the target element.
- */
- target?: any;
+ /** returns the target element.
+ */
+ target?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface MenuClickEventArgs {
+ export interface MenuClickEventArgs {
- /** returns the ID of clicked ContextMenu item.
- */
- ID?: string;
+ /** returns the ID of clicked ContextMenu item.
+ */
+ ID?: string;
- /** set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the name of ContextMenu items group.
- */
- contextMenu?: string;
+ /** returns the name of ContextMenu items group.
+ */
+ contextMenu?: string;
- /** returns the element of clicked ContextMenu item.
- */
- element?: any;
+ /** returns the element of clicked ContextMenu item.
+ */
+ element?: any;
- /** returns the event of ContextMenu.
- */
- event?: any;
+ /** returns the event of ContextMenu.
+ */
+ event?: any;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the parent element ID of clicked ContextMenu item.
- */
- parentId?: string;
+ /** returns the parent element ID of clicked ContextMenu item.
+ */
+ parentId?: string;
- /** returns the parent element text of clicked ContextMenu item.
- */
- parentText?: string;
+ /** returns the parent element text of clicked ContextMenu item.
+ */
+ parentText?: string;
- /** returns the text of clicked ContextMenu item.
- */
- text?: string;
+ /** returns the text of clicked ContextMenu item.
+ */
+ text?: string;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface MenuOpenEventArgs {
+ export interface MenuOpenEventArgs {
- /** set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the name of ContextMenu items group.
- */
- contextMenu?: string;
+ /** returns the name of ContextMenu items group.
+ */
+ contextMenu?: string;
- /** returns the element of ContextMenu.
- */
- element?: any;
+ /** returns the element of ContextMenu.
+ */
+ element?: any;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the target element.
- */
- target?: any;
+ /** returns the target element.
+ */
+ target?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface OpenEventArgs {
+ export interface OpenEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the opened item type.
- */
- itemType?: string;
+ /** returns the opened item type.
+ */
+ itemType?: string;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the path of currently opened item.
- */
- path?: string;
+ /** returns the path of currently opened item.
+ */
+ path?: string;
- /** returns the selected item details.
- */
- selectedItems?: any;
+ /** returns the selected item details.
+ */
+ selectedItems?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface PasteEventArgs {
+ export interface PasteEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of moved/copied file or folder.
- */
- name?: string[];
+ /** returns the name of moved/copied file or folder.
+ */
+ name?: string[];
- /** returns the selected item details.
- */
- selectedItems?: any;
+ /** returns the selected item details.
+ */
+ selectedItems?: any;
- /** returns the target folder item details.
- */
- targetFolder?: any;
+ /** returns the target folder item details.
+ */
+ targetFolder?: any;
- /** returns the target path.
- */
- targetPath?: string;
+ /** returns the target path.
+ */
+ targetPath?: string;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface RemoveEventArgs {
+ export interface RemoveEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the AJAX response data.
- */
- data?: any;
+ /** returns the AJAX response data.
+ */
+ data?: any;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the names of deleted items.
- */
- name?: string;
+ /** returns the names of deleted items.
+ */
+ name?: string;
- /** returns the path of deleted item.
- */
- path?: string;
+ /** returns the path of deleted item.
+ */
+ path?: string;
- /** returns the removed item details.
- */
- selectedItems?: any;
+ /** returns the removed item details.
+ */
+ selectedItems?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface ResizeEventArgs {
+ export interface ResizeEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the mouse move event args.
- */
- event?: any;
+ /** returns the mouse move event args.
+ */
+ event?: any;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface ResizeStartEventArgs {
+ export interface ResizeStartEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the mouse down event args.
- */
- event?: any;
+ /** returns the mouse down event args.
+ */
+ event?: any;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface ResizeStopEventArgs {
+ export interface ResizeStopEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the mouse leave event args.
- */
- event?: any;
+ /** returns the mouse leave event args.
+ */
+ event?: any;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface SelectEventArgs {
+ export interface SelectEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** returns the name of selected items.
- */
- name?: string[];
+ /** returns the name of selected items.
+ */
+ name?: string[];
- /** returns the path of selected items.
- */
- path?: string;
+ /** returns the path of selected items.
+ */
+ path?: string;
- /** returns the selected item details
- */
- selectedItems?: any;
+ /** returns the selected item details
+ */
+ selectedItems?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface TemplateRefreshEventArgs {
+ export interface TemplateRefreshEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** Returns the cell object.
- */
- cell?: ej.FileExplorer.Model;
+ /** Returns the cell object.
+ */
+ cell?: ej.FileExplorer.Model;
- /** Returns the column object.
- */
- column?: any;
+ /** Returns the column object.
+ */
+ column?: any;
- /** Returns the current row data.
- */
- data?: any;
+ /** Returns the current row data.
+ */
+ data?: any;
- /** Returns the grid model of FileExplorer.
- */
- model?: any;
+ /** Returns the grid model of FileExplorer.
+ */
+ model?: any;
- /** Returns the current row index.
- */
- rowIndex?: number;
+ /** Returns the current row index.
+ */
+ rowIndex?: number;
- /** returns the name of the event.
- */
- type?: string;
-}
-
-export interface UnselectEventArgs {
-
- /** Returns the FileExplorer model.
- */
- model?: ej.FileExplorer.Model;
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
+
+ export interface UnselectEventArgs {
+
+ /** Returns the FileExplorer model.
+ */
+ model?: ej.FileExplorer.Model;
- /** Returns the name of unselected item.
- */
- name?: string;
+ /** Returns the name of unselected item.
+ */
+ name?: string;
- /** Returns the name of unselected items.
- */
- names?: string[];
+ /** Returns the name of unselected items.
+ */
+ names?: string[];
- /** Returns the type of unselected item.
- */
- nodeType?: string;
+ /** Returns the type of unselected item.
+ */
+ nodeType?: string;
- /** Returns the path of unselected item.
- */
- path?: string;
+ /** Returns the path of unselected item.
+ */
+ path?: string;
- /** Returns the name of the event.
- */
- type?: string;
-
- /** Returns the unselected item details.
- */
- unselectedItem?: any;
-
- /** Returns the unselected items details.
- */
- unselectedItems?: any[];
-}
-
-export interface ContextMenuSettings {
-
- /** The items property is used to configure and group the required ContextMenu items in FileExplorer control.
- * @Default {{% highlight javascript %}{navbar: [NewFolder, Upload, |, Delete, Rename, |, Cut, Copy, Paste, |, Getinfo],cwd: [Refresh, Paste,|, SortBy, |, NewFolder, Upload, |,
- * Getinfo],files: [Open, Download, |, Upload, |, Delete, Rename, |, Cut, Copy, Paste, |, OpenFolderLocation, Getinfo]}{% endhighlight %}}
- */
- items?: any;
-
- /** The customMenuFields property is used to define custom functionality for custom ContextMenu item's which are defined in items property.
- * @Default {[]}
- */
- customMenuFields?: any[];
-}
-
-export interface FilterSettings {
-
- /** It allows to search the text given in search Textbox in every keyup event. When this property was set as false, searching will works only on Enter key and searchbar blur.
- * @Default {true}
- */
- allowSearchOnTyping?: boolean;
-
- /** Enables or disables to perform the filter operation with case sensitive.
- * @Default {false}
- */
- caseSensitiveSearch?: boolean;
-
- /** Sets the search filter type. There are several filter types available such as "startswith", "contains", "endswith". See filterType.
- * @Default {ej.FileExplorer.filterType.Contains}
- */
- filterType?: ej.FilterType|string;
-}
-
-export interface GridSettings {
-
- /** Allows to Resize the width of the columns by simply click and move the particular column header line.
- * @Default {true}
- */
- allowResizing?: boolean;
-
- /** Gets or sets a value that indicates whether to enable the dynamic sorting behavior on grid data. Sorting can be done through clicking on particular column header.
- * @Default {true}
- */
- allowSorting?: boolean;
-
- /** Gets or sets an object that indicates to render the grid with specified columns. You can use this property same as the column property in Grid control.
- * @Default {[{ field: name, headerText: Name, width: 30% }, { field: dateModified, headerText: Date Modified, width: 30% }, { field: type, headerText: Type, width: 15% },
- * { field: size, headerText: Size, width: 12%, textAlign: right, headerTextAlign: left }]}
- */
- columns?: any[];
-}
-
-export interface UploadSettings {
-
- /** Specifies the maximum file size allowed to upload. It accepts the value in bytes.
- * @Default {31457280}
- */
- maxFileSize?: number;
-
- /** Enables or disables the multiple files upload. When it is enabled, you can upload multiple files at a time and when disabled, you can upload only one file at a time.
- * @Default {true}
- */
- allowMultipleFile?: boolean;
-
- /** Enables or disables the auto upload option while uploading files in FileExplorer control.
- * @Default {false}
- */
- autoUpload?: boolean;
-}
-
-enum layoutType {
-
- ///Supports to display files in tile view
- Tile,
-
- ///Supports to display files in grid view
- Grid,
-
- ///Supports to display files as large icons
- LargeIcons
-}
-
-}
-
-class DatePicker extends ej.Widget {
- static fn: DatePicker;
- constructor(element: JQuery | Element, options?: DatePicker.Model);
- static Locale: any;
- model: DatePicker.Model;
- defaults: DatePicker.Model;
-
- /** Disables the DatePicker control.
- * @returns {void}
- */
- disable(): void;
-
- /** Enable the DatePicker control, if it is in disabled state.
- * @returns {void}
- */
- enable(): void;
-
- /** Returns the current date value in the DatePicker control.
- * @returns {string}
- */
- getValue(): string;
-
- /** Close the DatePicker popup, if it is in opened state.
- * @returns {void}
- */
- hide(): void;
-
- /** Opens the DatePicker popup.
- * @returns {void}
- */
- show(): void;
-}
-export namespace DatePicker {
-
-export interface Model {
-
- /** Used to allow or restrict the editing in DatePicker input field directly. By setting false to this API, You can only pick the date from DatePicker popup.
- * @Default {true}
- */
- allowEdit?: boolean;
-
- /** allow or restrict the drill down to multiple levels of view (month/year/decade) in DatePicker calendar
- * @Default {true}
- */
- allowDrillDown?: boolean;
-
- /** Disable the list of specified date value.
- * @Default {{}}
- */
- blackoutDates?: any;
-
- /** Sets the specified text value to the today button in the DatePicker calendar.
- * @Default {Today}
- */
- buttonText?: string;
-
- /** Sets the root CSS class for DatePicker theme, which is used customize.
- */
- cssClass?: string;
-
- /** Formats the value of the DatePicker in to the specified date format. If this API is not specified, dateFormat will be set based on the current culture of DatePicker.
- * @Default {MM/dd/yyyy}
- */
- dateFormat?: string;
-
- /** Specifies the header format of days in DatePicker calendar. See below to get available Headers options
- * @Default {ej.DatePicker.Header.Short}
- */
- dayHeaderFormat?: string | ej.DatePicker.Header;
-
- /** Specifies the navigation depth level in DatePicker calendar. This option is not applied when start level view option is lower than depth level view.
- * See below to know available levels in DatePicker Calendar
- */
- depthLevel?: string | ej.DatePicker.Level;
-
- /** Allows to embed the DatePicker calendar in the page. Also associates DatePicker with div element instead of input.
- * @Default {false}
- */
- displayInline?: boolean;
-
- /** Enables or disables the animation effect with DatePicker calendar.
- * @Default {true}
- */
- enableAnimation?: boolean;
-
- /** Enable or disable the DatePicker control.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Sustain the entire widget model of DatePicker even after form post or browser refresh
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Displays DatePicker calendar along with DatePicker input field in Right to Left direction.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Allows to enter valid or invalid date in input textbox and indicate as error if it is invalid value, when this API value is set to true. For false value, invalid date is not allowed
- * to input field and corrected to valid date automatically, even if invalid date is given.
- * @Default {false}
- */
- enableStrictMode?: boolean;
-
- /** Used the required fields for special Dates in DatePicker in order to customize the special dates in a calendar.
- * @Default {null}
- */
- fields?: Fields;
-
- /** Specifies the header format to be displayed in the DatePicker calendar.
- * @Default {MMMM yyyy}
- */
- headerFormat?: string;
-
- /** Specifies the height of the DatePicker input text.
- * @Default {28px}
- */
- height?: string;
-
- /** HighlightSection is used to highlight currently selected date's month/week/workdays. See below to get available HighlightSection options
- * @Default {none}
- */
- highlightSection?: string | ej.DatePicker.HighlightSection;
-
- /** Weekend dates will be highlighted when this property is set to true.
- * @Default {false}
- */
- highlightWeekend?: boolean;
-
- /** Specifies the HTML Attributes of the DatePicker.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Change the DatePicker calendar and date format based on given culture.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Specifies the maximum date in the calendar that the user can select.
- * @Default {new Date(2099, 11, 31)}
- */
- maxDate?: string|Date;
-
- /** Specifies the minimum date in the calendar that the user can select.
- * @Default {new Date(1900, 00, 01)}
- */
- minDate?: string|Date;
-
- /** Allows to toggles the read only state of the DatePicker. When the widget is readOnly, it doesn't allow your input.
- * @Default {false}
- */
- readOnly?: boolean;
-
- /** It allow to show/hide the disabled date ranges
- * @Default {true}
- */
- showDisabledRange?: boolean;
-
- /** It allows to display footer in DatePicker calendar.
- * @Default {true}
- */
- showFooter?: boolean;
-
- /** It allows to display/hides the other months days from the current month calendar in a DatePicker.
- * @Default {true}
- */
- showOtherMonths?: boolean;
-
- /** Shows/hides the date icon button at right side of textbox, which is used to open or close the DatePicker calendar popup.
- * @Default {true}
- */
- showPopupButton?: boolean;
-
- /** DatePicker input is displayed with rounded corner when this property is set to true.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Used to show the tooltip when hovering on the days in the DatePicker calendar.
- * @Default {true}
- */
- showTooltip?: boolean;
-
- /** Specifies the special dates in DatePicker.
- * @Default {null}
- */
- specialDates?: any;
-
- /** Specifies the start day of the week in DatePicker calendar.
- * @Default {0}
- */
- startDay?: number;
-
- /** Specifies the start level view in DatePicker calendar. See below available Levels
- * @Default {ej.DatePicker.Level.Month}
- */
- startLevel?: string | ej.DatePicker.Level;
-
- /** Specifies the number of months to be navigate for one click of next and previous button in a DatePicker Calendar.
- * @Default {1}
- */
- stepMonths?: number;
-
- /** Provides option to customize the tooltip format.
- * @Default {ddd MMM dd yyyy}
- */
- tooltipFormat?: string;
-
- /** Sets the jQuery validation support to DatePicker Date value. See validation
- * @Default {null}
- */
- validationMessage?: any;
-
- /** Sets the jQuery validation custom rules to the DatePicker. see validation
- * @Default {null}
- */
- validationRules?: any;
-
- /** sets or returns the current value of DatePicker
- * @Default {null}
- */
- value?: string|Date;
-
- /** Specifies the water mark text to be displayed in input text.
- * @Default {Select date}
- */
- watermarkText?: string;
-
- /** Specifies the width of the DatePicker input text.
- * @Default {160px}
- */
- width?: string;
-
- /** Fires before closing the DatePicker popup. */
- beforeClose?(e: BeforeCloseEventArgs): void;
-
- /** Fires when each date is created in the DatePicker popup calendar. */
- beforeDateCreate?(e: BeforeDateCreateEventArgs): void;
-
- /** Fires before opening the DatePicker popup. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
-
- /** Fires when the DatePicker input value is changed. */
- change?(e: ChangeEventArgs): void;
+ /** Returns the name of the event.
+ */
+ type?: string;
+
+ /** Returns the unselected item details.
+ */
+ unselectedItem?: any;
+
+ /** Returns the unselected items details.
+ */
+ unselectedItems?: any[];
+ }
+
+ export interface ContextMenuSettings {
+
+ /** The items property is used to configure and group the required ContextMenu items in FileExplorer control.
+ * @Default {{% highlight javascript %}{navbar: [NewFolder, Upload, |, Delete, Rename, |, Cut, Copy, Paste, |, Getinfo],cwd: [Refresh, Paste,|, SortBy, |, NewFolder, Upload, |,
+ * Getinfo],files: [Open, Download, |, Upload, |, Delete, Rename, |, Cut, Copy, Paste, |, OpenFolderLocation, Getinfo]}{% endhighlight %}}
+ */
+ items?: any;
+
+ /** The customMenuFields property is used to define custom functionality for custom ContextMenu item's which are defined in items property.
+ * @Default {[]}
+ */
+ customMenuFields?: any[];
+ }
+
+ export interface FilterSettings {
+
+ /** It allows to search the text given in search Textbox in every keyup event. When this property was set as false, searching will works only on Enter key and searchbar blur.
+ * @Default {true}
+ */
+ allowSearchOnTyping?: boolean;
+
+ /** Enables or disables to perform the filter operation with case sensitive.
+ * @Default {false}
+ */
+ caseSensitiveSearch?: boolean;
+
+ /** Sets the search filter type. There are several filter types available such as "startswith", "contains", "endswith". See filterType.
+ * @Default {ej.FileExplorer.filterType.Contains}
+ */
+ filterType?: ej.FilterType | string;
+ }
+
+ export interface GridSettings {
+
+ /** Allows to Resize the width of the columns by simply click and move the particular column header line.
+ * @Default {true}
+ */
+ allowResizing?: boolean;
+
+ /** Gets or sets a value that indicates whether to enable the dynamic sorting behavior on grid data. Sorting can be done through clicking on particular column header.
+ * @Default {true}
+ */
+ allowSorting?: boolean;
+
+ /** Gets or sets an object that indicates to render the grid with specified columns. You can use this property same as the column property in Grid control.
+ * @Default {[{ field: name, headerText: Name, width: 30% }, { field: dateModified, headerText: Date Modified, width: 30% }, { field: type, headerText: Type, width: 15% },
+ * { field: size, headerText: Size, width: 12%, textAlign: right, headerTextAlign: left }]}
+ */
+ columns?: any[];
+ }
+
+ export interface UploadSettings {
+
+ /** Specifies the maximum file size allowed to upload. It accepts the value in bytes.
+ * @Default {31457280}
+ */
+ maxFileSize?: number;
+
+ /** Enables or disables the multiple files upload. When it is enabled, you can upload multiple files at a time and when disabled, you can upload only one file at a time.
+ * @Default {true}
+ */
+ allowMultipleFile?: boolean;
+
+ /** Enables or disables the auto upload option while uploading files in FileExplorer control.
+ * @Default {false}
+ */
+ autoUpload?: boolean;
+ }
+
+ enum layoutType {
+
+ ///Supports to display files in tile view
+ Tile,
+
+ ///Supports to display files in grid view
+ Grid,
+
+ ///Supports to display files as large icons
+ LargeIcons
+ }
+
+ }
+
+ class DatePicker extends ej.Widget {
+ static fn: DatePicker;
+ constructor(element: JQuery | Element, options?: DatePicker.Model);
+ static Locale: any;
+ model: DatePicker.Model;
+ defaults: DatePicker.Model;
+
+ /** Disables the DatePicker control.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Enable the DatePicker control, if it is in disabled state.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Returns the current date value in the DatePicker control.
+ * @returns {string}
+ */
+ getValue(): string;
+
+ /** Close the DatePicker popup, if it is in opened state.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** Opens the DatePicker popup.
+ * @returns {void}
+ */
+ show(): void;
+ }
+ export namespace DatePicker {
+
+ export interface Model {
+
+ /** Used to allow or restrict the editing in DatePicker input field directly. By setting false to this API, You can only pick the date from DatePicker popup.
+ * @Default {true}
+ */
+ allowEdit?: boolean;
+
+ /** allow or restrict the drill down to multiple levels of view (month/year/decade) in DatePicker calendar
+ * @Default {true}
+ */
+ allowDrillDown?: boolean;
+
+ /** Disable the list of specified date value.
+ * @Default {{}}
+ */
+ blackoutDates?: any;
+
+ /** Sets the specified text value to the today button in the DatePicker calendar.
+ * @Default {Today}
+ */
+ buttonText?: string;
+
+ /** Sets the root CSS class for DatePicker theme, which is used customize.
+ */
+ cssClass?: string;
+
+ /** Formats the value of the DatePicker in to the specified date format. If this API is not specified, dateFormat will be set based on the current culture of DatePicker.
+ * @Default {MM/dd/yyyy}
+ */
+ dateFormat?: string;
+
+ /** Specifies the header format of days in DatePicker calendar. See below to get available Headers options
+ * @Default {ej.DatePicker.Header.Short}
+ */
+ dayHeaderFormat?: string | ej.DatePicker.Header;
+
+ /** Specifies the navigation depth level in DatePicker calendar. This option is not applied when start level view option is lower than depth level view.
+ * See below to know available levels in DatePicker Calendar
+ */
+ depthLevel?: string | ej.DatePicker.Level;
+
+ /** Allows to embed the DatePicker calendar in the page. Also associates DatePicker with div element instead of input.
+ * @Default {false}
+ */
+ displayInline?: boolean;
+
+ /** Enables or disables the animation effect with DatePicker calendar.
+ * @Default {true}
+ */
+ enableAnimation?: boolean;
+
+ /** Enable or disable the DatePicker control.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Sustain the entire widget model of DatePicker even after form post or browser refresh
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Displays DatePicker calendar along with DatePicker input field in Right to Left direction.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Allows to enter valid or invalid date in input textbox and indicate as error if it is invalid value, when this API value is set to true. For false value, invalid date is not allowed
+ * to input field and corrected to valid date automatically, even if invalid date is given.
+ * @Default {false}
+ */
+ enableStrictMode?: boolean;
+
+ /** Used the required fields for special Dates in DatePicker in order to customize the special dates in a calendar.
+ * @Default {null}
+ */
+ fields?: Fields;
+
+ /** Specifies the header format to be displayed in the DatePicker calendar.
+ * @Default {MMMM yyyy}
+ */
+ headerFormat?: string;
+
+ /** Specifies the height of the DatePicker input text.
+ * @Default {28px}
+ */
+ height?: string;
+
+ /** HighlightSection is used to highlight currently selected date's month/week/workdays. See below to get available HighlightSection options
+ * @Default {none}
+ */
+ highlightSection?: string | ej.DatePicker.HighlightSection;
+
+ /** Weekend dates will be highlighted when this property is set to true.
+ * @Default {false}
+ */
+ highlightWeekend?: boolean;
+
+ /** Specifies the HTML Attributes of the DatePicker.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Change the DatePicker calendar and date format based on given culture.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Specifies the maximum date in the calendar that the user can select.
+ * @Default {new Date(2099, 11, 31)}
+ */
+ maxDate?: string | Date;
+
+ /** Specifies the minimum date in the calendar that the user can select.
+ * @Default {new Date(1900, 00, 01)}
+ */
+ minDate?: string | Date;
+
+ /** Allows to toggles the read only state of the DatePicker. When the widget is readOnly, it doesn't allow your input.
+ * @Default {false}
+ */
+ readOnly?: boolean;
+
+ /** It allow to show/hide the disabled date ranges
+ * @Default {true}
+ */
+ showDisabledRange?: boolean;
+
+ /** It allows to display footer in DatePicker calendar.
+ * @Default {true}
+ */
+ showFooter?: boolean;
+
+ /** It allows to display/hides the other months days from the current month calendar in a DatePicker.
+ * @Default {true}
+ */
+ showOtherMonths?: boolean;
+
+ /** Shows/hides the date icon button at right side of textbox, which is used to open or close the DatePicker calendar popup.
+ * @Default {true}
+ */
+ showPopupButton?: boolean;
+
+ /** DatePicker input is displayed with rounded corner when this property is set to true.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Used to show the tooltip when hovering on the days in the DatePicker calendar.
+ * @Default {true}
+ */
+ showTooltip?: boolean;
+
+ /** Specifies the special dates in DatePicker.
+ * @Default {null}
+ */
+ specialDates?: any;
+
+ /** Specifies the start day of the week in DatePicker calendar.
+ * @Default {0}
+ */
+ startDay?: number;
+
+ /** Specifies the start level view in DatePicker calendar. See below available Levels
+ * @Default {ej.DatePicker.Level.Month}
+ */
+ startLevel?: string | ej.DatePicker.Level;
+
+ /** Specifies the number of months to be navigate for one click of next and previous button in a DatePicker Calendar.
+ * @Default {1}
+ */
+ stepMonths?: number;
+
+ /** Provides option to customize the tooltip format.
+ * @Default {ddd MMM dd yyyy}
+ */
+ tooltipFormat?: string;
+
+ /** Sets the jQuery validation support to DatePicker Date value. See validation
+ * @Default {null}
+ */
+ validationMessage?: any;
+
+ /** Sets the jQuery validation custom rules to the DatePicker. see validation
+ * @Default {null}
+ */
+ validationRules?: any;
+
+ /** sets or returns the current value of DatePicker
+ * @Default {null}
+ */
+ value?: string | Date;
+
+ /** Specifies the water mark text to be displayed in input text.
+ * @Default {Select date}
+ */
+ watermarkText?: string;
+
+ /** Specifies the width of the DatePicker input text.
+ * @Default {160px}
+ */
+ width?: string;
+
+ /** Fires before closing the DatePicker popup. */
+ beforeClose?(e: BeforeCloseEventArgs): void;
+
+ /** Fires when each date is created in the DatePicker popup calendar. */
+ beforeDateCreate?(e: BeforeDateCreateEventArgs): void;
+
+ /** Fires before opening the DatePicker popup. */
+ beforeOpen?(e: BeforeOpenEventArgs): void;
+
+ /** Fires when the DatePicker input value is changed. */
+ change?(e: ChangeEventArgs): void;
- /** Fires when DatePicker popup is closed. */
- close?(e: CloseEventArgs): void;
+ /** Fires when DatePicker popup is closed. */
+ close?(e: CloseEventArgs): void;
- /** Fires when the DatePicker is created successfully. */
- create?(e: CreateEventArgs): void;
+ /** Fires when the DatePicker is created successfully. */
+ create?(e: CreateEventArgs): void;
- /** Fires when the DatePicker is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ /** Fires when the DatePicker is destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
- /** Fires when DatePicker input gets focus. */
- focusIn?(e: FocusInEventArgs): void;
+ /** Fires when DatePicker input gets focus. */
+ focusIn?(e: FocusInEventArgs): void;
- /** Fires when DatePicker input loses the focus. */
- focusOut?(e: FocusOutEventArgs): void;
+ /** Fires when DatePicker input loses the focus. */
+ focusOut?(e: FocusOutEventArgs): void;
- /** Fires when calender view navigates to month/year/decade/century. */
- navigate?(e: NavigateEventArgs): void;
+ /** Fires when calender view navigates to month/year/decade/century. */
+ navigate?(e: NavigateEventArgs): void;
- /** Fires when DatePicker popup is opened. */
- open?(e: OpenEventArgs): void;
+ /** Fires when DatePicker popup is opened. */
+ open?(e: OpenEventArgs): void;
- /** Fires when a date is selected from the DatePicker popup. */
- select?(e: SelectEventArgs): void;
-}
+ /** Fires when a date is selected from the DatePicker popup. */
+ select?(e: SelectEventArgs): void;
+ }
-export interface BeforeCloseEventArgs {
+ export interface BeforeCloseEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the event parameters from DatePicker.
- */
- events?: any;
+ /** returns the event parameters from DatePicker.
+ */
+ events?: any;
- /** returns the DatePicker popup.
- */
- element?: HTMLElement;
-}
+ /** returns the DatePicker popup.
+ */
+ element?: HTMLElement;
+ }
-export interface BeforeDateCreateEventArgs {
+ export interface BeforeDateCreateEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the currently created date object.
- */
- date?: any;
+ /** returns the currently created date object.
+ */
+ date?: any;
- /** returns the current DOM object of the date from the Calendar.
- */
- element?: HTMLElement;
+ /** returns the current DOM object of the date from the Calendar.
+ */
+ element?: HTMLElement;
- /** returns the currently created date as string type.
- */
- value?: string;
-}
+ /** returns the currently created date as string type.
+ */
+ value?: string;
+ }
-export interface BeforeOpenEventArgs {
+ export interface BeforeOpenEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the event parameters from DatePicker.
- */
- events?: any;
+ /** returns the event parameters from DatePicker.
+ */
+ events?: any;
- /** returns the DatePicker popup.
- */
- element?: HTMLElement;
-}
+ /** returns the DatePicker popup.
+ */
+ element?: HTMLElement;
+ }
-export interface ChangeEventArgs {
+ export interface ChangeEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the DatePicker input value.
- */
- value?: string;
+ /** returns the DatePicker input value.
+ */
+ value?: string;
- /** returns the previously selected value.
- */
- prevDate?: string;
-}
+ /** returns the previously selected value.
+ */
+ prevDate?: string;
+ }
-export interface CloseEventArgs {
+ export interface CloseEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the current date object.
- */
- date?: any;
+ /** returns the current date object.
+ */
+ date?: any;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the current date value.
- */
- value?: string;
+ /** returns the current date value.
+ */
+ value?: string;
- /** returns the previously selected value.
- */
- prevDate?: string;
-}
+ /** returns the previously selected value.
+ */
+ prevDate?: string;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface FocusInEventArgs {
+ export interface FocusInEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the currently selected date value.
- */
- value?: string;
-}
+ /** returns the currently selected date value.
+ */
+ value?: string;
+ }
-export interface FocusOutEventArgs {
+ export interface FocusOutEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the currently selected date value.
- */
- value?: string;
+ /** returns the currently selected date value.
+ */
+ value?: string;
- /** returns the previously selected date value.
- */
- prevDate?: string;
-}
+ /** returns the previously selected date value.
+ */
+ prevDate?: string;
+ }
-export interface NavigateEventArgs {
+ export interface NavigateEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the current date object.
- */
- date?: any;
+ /** returns the current date object.
+ */
+ date?: any;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the previous view state of calendar.
- */
- navigateFrom?: string;
+ /** returns the previous view state of calendar.
+ */
+ navigateFrom?: string;
- /** returns the current view state of calendar.
- */
- navigateTo?: string;
+ /** returns the current view state of calendar.
+ */
+ navigateTo?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the current date value.
- */
- value?: string;
-}
+ /** returns the current date value.
+ */
+ value?: string;
+ }
-export interface OpenEventArgs {
+ export interface OpenEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the current date object.
- */
- date?: any;
+ /** returns the current date object.
+ */
+ date?: any;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the current date value.
- */
- value?: string;
+ /** returns the current date value.
+ */
+ value?: string;
- /** returns the previously selected value.
- */
- prevDate?: string;
-}
+ /** returns the previously selected value.
+ */
+ prevDate?: string;
+ }
-export interface SelectEventArgs {
+ export interface SelectEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the selected date object.
- */
- date?: any;
+ /** returns the selected date object.
+ */
+ date?: any;
- /** returns the DatePicker model.
- */
- model?: ej.DatePicker.Model;
+ /** returns the DatePicker model.
+ */
+ model?: ej.DatePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the current date value.
- */
- value?: string;
+ /** returns the current date value.
+ */
+ value?: string;
- /** returns the previously selected value.
- */
- prevDate?: string;
+ /** returns the previously selected value.
+ */
+ prevDate?: string;
- /** returns whether the currently selected date is special date or not.
- */
- isSpecialDay?: string;
-}
+ /** returns whether the currently selected date is special date or not.
+ */
+ isSpecialDay?: string;
+ }
-export interface Fields {
+ export interface Fields {
- /** Specifies the specials dates
- */
- date?: string;
+ /** Specifies the specials dates
+ */
+ date?: string;
- /** Specifies the icon class to special dates.
- */
- iconClass?: string;
+ /** Specifies the icon class to special dates.
+ */
+ iconClass?: string;
- /** Specifies the tooltip to special dates.
- */
- tooltip?: string;
+ /** Specifies the tooltip to special dates.
+ */
+ tooltip?: string;
- /** Specifies the CSS class to customize the date.
- */
- cssClass?: string;
-}
+ /** Specifies the CSS class to customize the date.
+ */
+ cssClass?: string;
+ }
-enum Header {
+ enum Header {
- ///Removes day header in DatePicker
- None,
+ ///Removes day header in DatePicker
+ None,
- ///sets the short format of day name (like Sun) in header in DatePicker
- Short,
+ ///sets the short format of day name (like Sun) in header in DatePicker
+ Short,
- ///sets the Min format of day name (like su) in header format DatePicker
- Min
-}
+ ///sets the Min format of day name (like su) in header format DatePicker
+ Min
+ }
-enum Level {
+ enum Level {
- ///allow navigation upto year level in DatePicker
- Year,
+ ///allow navigation upto year level in DatePicker
+ Year,
- ///allow navigation upto decade level in DatePicker
- Decade,
+ ///allow navigation upto decade level in DatePicker
+ Decade,
- ///allow navigation upto Century level in DatePicker
- Century
-}
+ ///allow navigation upto Century level in DatePicker
+ Century
+ }
-enum HighlightSection {
+ enum HighlightSection {
- ///Highlight the week of the currently selected date in DatePicker popup calendar
- Week,
+ ///Highlight the week of the currently selected date in DatePicker popup calendar
+ Week,
- ///Highlight the workdays in a currently selected date's week in DatePicker popup calendar
- WorkDays,
+ ///Highlight the workdays in a currently selected date's week in DatePicker popup calendar
+ WorkDays,
- ///Nothing will be highlighted, remove highlights from DatePicker popup calendar if already exists
- None
-}
+ ///Nothing will be highlighted, remove highlights from DatePicker popup calendar if already exists
+ None
+ }
-}
+ }
-class DateTimePicker extends ej.Widget {
- static fn: DateTimePicker;
- constructor(element: JQuery | Element, options?: DateTimePicker.Model);
- static Locale: any;
- model: DateTimePicker.Model;
- defaults: DateTimePicker.Model;
+ class DateTimePicker extends ej.Widget {
+ static fn: DateTimePicker;
+ constructor(element: JQuery | Element, options?: DateTimePicker.Model);
+ static Locale: any;
+ model: DateTimePicker.Model;
+ defaults: DateTimePicker.Model;
- /** Disables the DateTimePicker control.
- * @returns {void}
- */
- disable(): void;
+ /** Disables the DateTimePicker control.
+ * @returns {void}
+ */
+ disable(): void;
- /** Enables the DateTimePicker control.
- * @returns {void}
- */
- enable(): void;
-
- /** Returns the current datetime value in the DateTimePicker.
- * @returns {string}
- */
- getValue(): string;
-
- /** Hides or closes the DateTimePicker popup.
- * @returns {void}
- */
- hide(): void;
-
- /** Updates the current system date value and time value to the DateTimePicker.
- * @returns {void}
- */
- setCurrentDateTime(): void;
-
- /** Shows or opens the DateTimePicker popup.
- * @returns {void}
- */
- show(): void;
-}
-export namespace DateTimePicker {
-
-export interface Model {
-
- /** Used to allow or restrict the editing in DateTimePicker input field directly. By setting false to this API, You can only pick the date and time values from DateTimePicker popup.
- * @Default {true}
- */
- allowEdit?: boolean;
-
- /** Displays the custom text for the buttons inside the DateTimePicker popup. when the culture value changed, we can change the buttons text based on the culture.
- * @Default {{ today: Today, timeNow: Time Now, done: Done, timeTitle: Time }}
- */
- buttonText?: ButtonText;
-
- /** Set the root class for DateTimePicker theme. This cssClass API helps to use custom skinning option for DateTimePicker control.
- */
- cssClass?: string;
-
- /** Defines the datetime format displayed in the DateTimePicker. The value should be a combination of date format and time format.
- * @Default {M/d/yyyy h:mm tt}
- */
- dateTimeFormat?: string;
-
- /** Specifies the header format of the datepicker inside the DateTimePicker popup. See DatePicker.Header
- * @Default {ej.DatePicker.Header.Short}
- */
- dayHeaderFormat?: ej.DatePicker.Header|string;
-
- /** Specifies the navigation depth level in DatePicker calendar inside DateTimePicker popup. This option is not applied
- * when start level view option is lower than depth level view. See ej.DatePicker.Level
- */
- depthLevel?: ej.DatePicker.Level|string;
-
- /** Enable or disable the animation effect in DateTimePicker.
- * @Default {true}
- */
- enableAnimation?: boolean;
-
- /** When this property is set to false, it disables the DateTimePicker control.
- * @Default {false}
- */
- enabled?: boolean;
-
- /** Enables or disables the state maintenance of DateTimePicker.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Sets the DateTimePicker direction as right to left alignment.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** When enableStrictMode true it allows the value outside of the range also but it highlights the textbox with error class, otherwise it internally changed to the correct value.
- * @Default {false}
- */
- enableStrictMode?: boolean;
-
- /** Specifies the header format to be displayed in the DatePicker calendar inside the DateTimePicker popup.
- * @Default {MMMM yyyy}
- */
- headerFormat?: string;
-
- /** Defines the height of the DateTimePicker textbox.
- * @Default {30}
- */
- height?: string|number;
-
- /** Specifies the HTML Attributes of the ejDateTimePicker
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Sets the time interval between the two adjacent time values in the time popup.
- * @Default {30}
- */
- interval?: number;
-
- /** Defines the localization culture for DateTimePicker.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Sets the maximum value to the DateTimePicker. Beyond the maximum value an error class is added to the wrapper element when we set true to enableStrictMode.
- * @Default {new Date(12/31/2099 11:59:59 PM)}
- */
- maxDateTime?: string|Date;
-
- /** Sets the minimum value to the DateTimePicker. Behind the minimum value an error class is added to the wrapper element.
- * @Default {new Date(1/1/1900 12:00:00 AM)}
- */
- minDateTime?: string|Date;
-
- /** Specifies the popup position of DateTimePicker.See below to know available popup positions
- * @Default {ej.DateTimePicker.Bottom}
- */
- popupPosition?: string | ej.popupPosition;
-
- /** Indicates that the DateTimePicker value can only be read and can’t change.
- * @Default {false}
- */
- readOnly?: boolean;
-
- /** It allows showing days in other months of DatePicker calendar inside the DateTimePicker popup.
- * @Default {true}
- */
- showOtherMonths?: boolean;
-
- /** Shows or hides the arrow button from the DateTimePicker textbox. When the button disabled, the DateTimePicker popup opens while focus in the textbox and hides while focus out from the textbox.
- * @Default {true}
- */
- showPopupButton?: boolean;
-
- /** Changes the sharped edges into rounded corner for the DateTimePicker textbox and popup.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Specifies the start day of the week in datepicker inside the DateTimePicker popup.
- * @Default {1}
- */
- startDay?: number;
-
- /** Specifies the start level view in datepicker inside the DateTimePicker popup. See DatePicker.Level
- * @Default {ej.DatePicker.Level.Month or month}
- */
- startLevel?: ej.DatePicker.Level|string;
-
- /** Specifies the number of months to navigate at one click of next and previous button in datepicker inside the DateTimePicker popup.
- * @Default {1}
- */
- stepMonths?: number;
-
- /** Defines the time format displayed in the time dropdown inside the DateTimePicker popup.
- * @Default {h:mm tt}
- */
- timeDisplayFormat?: string;
-
- /** We can drill down up to time interval on selected date with meridian details.
- * @Default {{ enabled: false, interval: 5, showMeridian: false, autoClose: true }}
- */
- timeDrillDown?: TimeDrillDown;
-
- /** Defines the width of the time dropdown inside the DateTimePicker popup.
- * @Default {100}
- */
- timePopupWidth?: string|number;
-
- /** Set the jQuery validation error message in DateTimePicker.
- * @Default {null}
- */
- validationMessage?: any;
-
- /** Set the jQuery validation rules in DateTimePicker.
- * @Default {null}
- */
- validationRules?: any;
-
- /** Sets the DateTime value to the control.
- */
- value?: string|Date;
-
- /** Specifies the water mark text to be displayed in input text.
- * @Default {Select date and time}
- */
- watermarkText?: string;
-
- /** Defines the width of the DateTimePicker textbox.
- * @Default {143}
- */
- width?: string|number;
-
- /** Fires before the datetime popup closed in the DateTimePicker. */
- beforeClose?(e: BeforeCloseEventArgs): void;
-
- /** Fires before the datetime popup open in the DateTimePicker. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
-
- /** Fires when the datetime value changed in the DateTimePicker textbox. */
- change?(e: ChangeEventArgs): void;
-
- /** Fires when DateTimePicker popup closes. */
- close?(e: CloseEventArgs): void;
-
- /** Fires after DateTimePicker control is created. */
- create?(e: CreateEventArgs): void;
+ /** Enables the DateTimePicker control.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Returns the current datetime value in the DateTimePicker.
+ * @returns {string}
+ */
+ getValue(): string;
+
+ /** Hides or closes the DateTimePicker popup.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** Updates the current system date value and time value to the DateTimePicker.
+ * @returns {void}
+ */
+ setCurrentDateTime(): void;
+
+ /** Shows or opens the DateTimePicker popup.
+ * @returns {void}
+ */
+ show(): void;
+ }
+ export namespace DateTimePicker {
+
+ export interface Model {
+
+ /** Used to allow or restrict the editing in DateTimePicker input field directly. By setting false to this API, You can only pick the date and time values from DateTimePicker popup.
+ * @Default {true}
+ */
+ allowEdit?: boolean;
+
+ /** Displays the custom text for the buttons inside the DateTimePicker popup. when the culture value changed, we can change the buttons text based on the culture.
+ * @Default {{ today: Today, timeNow: Time Now, done: Done, timeTitle: Time }}
+ */
+ buttonText?: ButtonText;
+
+ /** Set the root class for DateTimePicker theme. This cssClass API helps to use custom skinning option for DateTimePicker control.
+ */
+ cssClass?: string;
+
+ /** Defines the datetime format displayed in the DateTimePicker. The value should be a combination of date format and time format.
+ * @Default {M/d/yyyy h:mm tt}
+ */
+ dateTimeFormat?: string;
+
+ /** Specifies the header format of the datepicker inside the DateTimePicker popup. See DatePicker.Header
+ * @Default {ej.DatePicker.Header.Short}
+ */
+ dayHeaderFormat?: ej.DatePicker.Header | string;
+
+ /** Specifies the navigation depth level in DatePicker calendar inside DateTimePicker popup. This option is not applied
+ * when start level view option is lower than depth level view. See ej.DatePicker.Level
+ */
+ depthLevel?: ej.DatePicker.Level | string;
+
+ /** Enable or disable the animation effect in DateTimePicker.
+ * @Default {true}
+ */
+ enableAnimation?: boolean;
+
+ /** When this property is set to false, it disables the DateTimePicker control.
+ * @Default {false}
+ */
+ enabled?: boolean;
+
+ /** Enables or disables the state maintenance of DateTimePicker.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Sets the DateTimePicker direction as right to left alignment.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** When enableStrictMode true it allows the value outside of the range also but it highlights the textbox with error class, otherwise it internally changed to the correct value.
+ * @Default {false}
+ */
+ enableStrictMode?: boolean;
+
+ /** Specifies the header format to be displayed in the DatePicker calendar inside the DateTimePicker popup.
+ * @Default {MMMM yyyy}
+ */
+ headerFormat?: string;
+
+ /** Defines the height of the DateTimePicker textbox.
+ * @Default {30}
+ */
+ height?: string | number;
+
+ /** Specifies the HTML Attributes of the ejDateTimePicker
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Sets the time interval between the two adjacent time values in the time popup.
+ * @Default {30}
+ */
+ interval?: number;
+
+ /** Defines the localization culture for DateTimePicker.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Sets the maximum value to the DateTimePicker. Beyond the maximum value an error class is added to the wrapper element when we set true to enableStrictMode.
+ * @Default {new Date(12/31/2099 11:59:59 PM)}
+ */
+ maxDateTime?: string | Date;
+
+ /** Sets the minimum value to the DateTimePicker. Behind the minimum value an error class is added to the wrapper element.
+ * @Default {new Date(1/1/1900 12:00:00 AM)}
+ */
+ minDateTime?: string | Date;
+
+ /** Specifies the popup position of DateTimePicker.See below to know available popup positions
+ * @Default {ej.DateTimePicker.Bottom}
+ */
+ popupPosition?: string | ej.popupPosition;
+
+ /** Indicates that the DateTimePicker value can only be read and can’t change.
+ * @Default {false}
+ */
+ readOnly?: boolean;
+
+ /** It allows showing days in other months of DatePicker calendar inside the DateTimePicker popup.
+ * @Default {true}
+ */
+ showOtherMonths?: boolean;
+
+ /** Shows or hides the arrow button from the DateTimePicker textbox. When the button disabled, the DateTimePicker popup opens while focus in the textbox and hides while focus out from the textbox.
+ * @Default {true}
+ */
+ showPopupButton?: boolean;
+
+ /** Changes the sharped edges into rounded corner for the DateTimePicker textbox and popup.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Specifies the start day of the week in datepicker inside the DateTimePicker popup.
+ * @Default {1}
+ */
+ startDay?: number;
+
+ /** Specifies the start level view in datepicker inside the DateTimePicker popup. See DatePicker.Level
+ * @Default {ej.DatePicker.Level.Month or month}
+ */
+ startLevel?: ej.DatePicker.Level | string;
+
+ /** Specifies the number of months to navigate at one click of next and previous button in datepicker inside the DateTimePicker popup.
+ * @Default {1}
+ */
+ stepMonths?: number;
+
+ /** Defines the time format displayed in the time dropdown inside the DateTimePicker popup.
+ * @Default {h:mm tt}
+ */
+ timeDisplayFormat?: string;
+
+ /** We can drill down up to time interval on selected date with meridian details.
+ * @Default {{ enabled: false, interval: 5, showMeridian: false, autoClose: true }}
+ */
+ timeDrillDown?: TimeDrillDown;
+
+ /** Defines the width of the time dropdown inside the DateTimePicker popup.
+ * @Default {100}
+ */
+ timePopupWidth?: string | number;
+
+ /** Set the jQuery validation error message in DateTimePicker.
+ * @Default {null}
+ */
+ validationMessage?: any;
+
+ /** Set the jQuery validation rules in DateTimePicker.
+ * @Default {null}
+ */
+ validationRules?: any;
+
+ /** Sets the DateTime value to the control.
+ */
+ value?: string | Date;
+
+ /** Specifies the water mark text to be displayed in input text.
+ * @Default {Select date and time}
+ */
+ watermarkText?: string;
+
+ /** Defines the width of the DateTimePicker textbox.
+ * @Default {143}
+ */
+ width?: string | number;
+
+ /** Fires before the datetime popup closed in the DateTimePicker. */
+ beforeClose?(e: BeforeCloseEventArgs): void;
+
+ /** Fires before the datetime popup open in the DateTimePicker. */
+ beforeOpen?(e: BeforeOpenEventArgs): void;
+
+ /** Fires when the datetime value changed in the DateTimePicker textbox. */
+ change?(e: ChangeEventArgs): void;
+
+ /** Fires when DateTimePicker popup closes. */
+ close?(e: CloseEventArgs): void;
+
+ /** Fires after DateTimePicker control is created. */
+ create?(e: CreateEventArgs): void;
- /** Fires when the DateTimePicker is destroyed successfully */
- destroy?(e: DestroyEventArgs): void;
-
- /** Fires when the focus-in happens in the DateTimePicker textbox. */
- focusIn?(e: FocusInEventArgs): void;
+ /** Fires when the DateTimePicker is destroyed successfully */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Fires when the focus-in happens in the DateTimePicker textbox. */
+ focusIn?(e: FocusInEventArgs): void;
- /** Fires when the focus-out happens in the DateTimePicker textbox. */
- focusOut?(e: FocusOutEventArgs): void;
+ /** Fires when the focus-out happens in the DateTimePicker textbox. */
+ focusOut?(e: FocusOutEventArgs): void;
- /** Fires when DateTimePicker popup opens. */
- open?(e: OpenEventArgs): void;
-}
+ /** Fires when DateTimePicker popup opens. */
+ open?(e: OpenEventArgs): void;
+ }
-export interface BeforeCloseEventArgs {
+ export interface BeforeCloseEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DateTimePicker model.
- */
- model?: ej.DateTimePicker.Model;
+ /** returns the DateTimePicker model.
+ */
+ model?: ej.DateTimePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the event parameters from DateTimePicker.
- */
- events?: any;
+ /** returns the event parameters from DateTimePicker.
+ */
+ events?: any;
- /** returns the DateTimePicker popup.
- */
- element?: HTMLElement;
-}
+ /** returns the DateTimePicker popup.
+ */
+ element?: HTMLElement;
+ }
-export interface BeforeOpenEventArgs {
+ export interface BeforeOpenEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DateTimePicker model.
- */
- model?: ej.DateTimePicker.Model;
+ /** returns the DateTimePicker model.
+ */
+ model?: ej.DateTimePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the event parameters from DateTimePicker.
- */
- events?: any;
+ /** returns the event parameters from DateTimePicker.
+ */
+ events?: any;
- /** returns the DateTimePicker popup.
- */
- element?: HTMLElement;
-}
+ /** returns the DateTimePicker popup.
+ */
+ element?: HTMLElement;
+ }
-export interface ChangeEventArgs {
+ export interface ChangeEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the TimePicker model
- */
- model?: ej.DateTimePicker.Model;
+ /** returns the TimePicker model
+ */
+ model?: ej.DateTimePicker.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the current value is valid or not
- */
- isValidState?: boolean;
+ /** returns the current value is valid or not
+ */
+ isValidState?: boolean;
- /** returns the modified datetime value
- */
- value?: string;
+ /** returns the modified datetime value
+ */
+ value?: string;
- /** returns the previously selected date time value
- */
- prevDateTime?: string;
+ /** returns the previously selected date time value
+ */
+ prevDateTime?: string;
- /** returns true if change event triggered by interaction, otherwise returns false
- */
- isInteraction?: boolean;
-}
+ /** returns true if change event triggered by interaction, otherwise returns false
+ */
+ isInteraction?: boolean;
+ }
-export interface CloseEventArgs {
+ export interface CloseEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the TimePicker model
- */
- model?: ej.DateTimePicker.Model;
+ /** returns the TimePicker model
+ */
+ model?: ej.DateTimePicker.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the modified datetime value
- */
- value?: string;
+ /** returns the modified datetime value
+ */
+ value?: string;
- /** returns the previously selected date time value
- */
- prevDateTime?: string;
-}
+ /** returns the previously selected date time value
+ */
+ prevDateTime?: string;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DateTimePicker model
- */
- model?: ej.DateTimePicker.Model;
+ /** returns the DateTimePicker model
+ */
+ model?: ej.DateTimePicker.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DateTimePicker model
- */
- model?: ej.DateTimePicker.Model;
+ /** returns the DateTimePicker model
+ */
+ model?: ej.DateTimePicker.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface FocusInEventArgs {
+ export interface FocusInEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the TimePicker model
- */
- model?: ej.DateTimePicker.Model;
+ /** returns the TimePicker model
+ */
+ model?: ej.DateTimePicker.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the datetime value, which is in text box
- */
- value?: string;
-}
-
-export interface FocusOutEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the TimePicker model
- */
- model?: ej.DateTimePicker.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the datetime value, which is in text box
- */
- value?: string;
-}
-
-export interface OpenEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the TimePicker model
- */
- model?: ej.DateTimePicker.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the modified datetime value
- */
- value?: string;
-
- /** returns the previously selected date time value
- */
- prevDateTime?: string;
-}
-
-export interface ButtonText {
-
- /** Sets the text for the Done button inside the datetime popup.
- */
- done?: string;
-
- /** Sets the text for the Now button inside the datetime popup.
- */
- timeNow?: string;
-
- /** Sets the header text for the Time dropdown.
- */
- timeTitle?: string;
-
- /** Sets the text for the Today button inside the datetime popup.
- */
- today?: string;
-}
-
-export interface TimeDrillDown {
-
- /** This is the field to show/hide the timeDrillDown in DateTimePicker.
- */
- enabled?: boolean;
-
- /** Sets the interval time of minutes on selected date.
- */
- interval?: number;
-
- /** Allows the user to show or hide the meridian with time in DateTimePicker.
- */
- showMeridian?: boolean;
-
- /** After choosing the time, the popup will close automatically if we set it as true, otherwise we focus out the DateTimePicker or choose timeNow button for closing the popup.
- */
- autoClose?: boolean;
-}
-}
-enum popupPosition {
-//Opens the DateTimePicker popup below to the DateTimePicker input box
-Bottom,
-//Opens the DateTimePicker popup above to the DateTimePicker input box
-Top,
-}
-
-class DateRangePicker extends ej.Widget {
- static fn: DateRangePicker;
- constructor(element: JQuery | Element, options?: DateRangePicker.Model);
- static Locale: any;
- model: DateRangePicker.Model;
- defaults: DateRangePicker.Model;
-
- /** Add the preset ranges to DateRangePicker popup.
- * @param {string} Display name
- * @param {Array} StartDate and endDate of range.
- * @returns {void}
- */
- addRanges(label: string, range: any[]): void;
-
- /** Clears the all ranges selections in DateRangePicker popup
- * @returns {void}
- */
- clearRanges(): void;
-
- /** Disables the DateRangePicker control.
- * @returns {void}
- */
- disable(): void;
-
- /** Enable the DateRangePicker control, if it is in disabled state.
- * @returns {void}
- */
- enable(): void;
-
- /** Returns the startDate and endDate values in the selected ranges in the DateRangePicker control.
- * @returns {string}
- */
- getSelectedValue(): string;
-
- /** Close the DateRangePicker popup, if it is in opened state.
- * @returns {void}
- */
- popupHide(): void;
-
- /** Opens the DateRangePicker popup.
- * @returns {void}
- */
- popupShow(): void;
-
- /** set the preset ranges to DateRangePicker popup.
- * @returns {void}
- */
- setRange(): void;
-}
-export namespace DateRangePicker {
-
-export interface Model {
-
- /** Used to allow or restrict the editing in DateRangePicker input field directly. By setting false to this API, You can only pick the date ranges from DateRangePicker popup.
- * @Default {true}
- */
- allowEdit?: boolean;
-
- /** Sets the specified text value to the available buttons (Reset, Cancel, Apply) in the DateRangePicker popup.
- * @Default {{ reset: Reset, cancel: Cancel, apply: Apply}}
- */
- buttonText?: any;
-
- /** Sets the root CSS class for DateRangePicker theme, which is used to customize.
- */
- cssClass?: string;
-
- /** Formats the date value of the DateRangePicker in to the specified date format. If this API is not specified, dateFormat will be set based on the current culture of DateRangePicker.
- * @Default {MM/dd/yyyy}
- */
- dateFormat?: string;
-
- /** Allows to embed the Timepicker align with the calendars in the page, two timepicker will be render, for selecting start and end date.
- * @Default {false}
- */
- enableTimePicker?: boolean;
-
- /** Enable or disable the DateRangePicker control.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Sustain the entire widget model of DateRangePicker even after form post or browser refresh
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Specifies the end date of the date ranges.
- * @Default {null}
- */
- endDate?: string|Date;
-
- /** Specifies the height of the DateRangePicker input.
- * @Default {28px}
- */
- height?: string|number;
-
- /** Change the DateRangePicker calendar and date format based on given culture.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Used to add the preset ranges. Added ranges using this, will show in popup in right side for easy selection of different preset ranges.
- * @Default {null}
- */
- ranges?: any;
-
- /** Specifies the start date of the date ranges
- * @Default {null}
- */
- startDate?: string|Date;
-
- /** Shows/hides the date icon button at right side of textbox, which is used to open or close the DateRangePicker calendar popup.
- * @Default {true}
- */
- showPopupButton?: boolean;
-
- /** DateRangePicker input and popup is displayed with rounded corner when this property is set to true.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Formats the date value of the DateRangePicker in to the specified time format. If this API is not specified, timeFormat will be set based on the current culture of DateRangePicker.
- * @Default {HH:mm tt}
- */
- timeFormat?: string;
-
- /** Separated two date values in string format to sets the date ranges in calendars.
- * @Default {null}
- */
- value?: string;
-
- /** Specifies the water mark text to be displayed in input text.
- * @Default {Select Range}
- */
- watermarkText?: string;
-
- /** Specifies the width of the DateRangePicker input text.
- * @Default {160px}
- */
- width?: string|number;
-
- /** Fires before closing the DateRangePicker popup. */
- beforeClose?(e: BeforeCloseEventArgs): void;
-
- /** Fires before opening the DateRangePicker popup. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
-
- /** Fires when the DateRangePicker values get changed. */
- onChange?(e: OnChangeEventArgs): void;
+ /** returns the datetime value, which is in text box
+ */
+ value?: string;
+ }
+
+ export interface FocusOutEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the TimePicker model
+ */
+ model?: ej.DateTimePicker.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the datetime value, which is in text box
+ */
+ value?: string;
+ }
+
+ export interface OpenEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the TimePicker model
+ */
+ model?: ej.DateTimePicker.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the modified datetime value
+ */
+ value?: string;
+
+ /** returns the previously selected date time value
+ */
+ prevDateTime?: string;
+ }
+
+ export interface ButtonText {
+
+ /** Sets the text for the Done button inside the datetime popup.
+ */
+ done?: string;
+
+ /** Sets the text for the Now button inside the datetime popup.
+ */
+ timeNow?: string;
+
+ /** Sets the header text for the Time dropdown.
+ */
+ timeTitle?: string;
+
+ /** Sets the text for the Today button inside the datetime popup.
+ */
+ today?: string;
+ }
+
+ export interface TimeDrillDown {
+
+ /** This is the field to show/hide the timeDrillDown in DateTimePicker.
+ */
+ enabled?: boolean;
+
+ /** Sets the interval time of minutes on selected date.
+ */
+ interval?: number;
+
+ /** Allows the user to show or hide the meridian with time in DateTimePicker.
+ */
+ showMeridian?: boolean;
+
+ /** After choosing the time, the popup will close automatically if we set it as true, otherwise we focus out the DateTimePicker or choose timeNow button for closing the popup.
+ */
+ autoClose?: boolean;
+ }
+ }
+ enum popupPosition {
+ //Opens the DateTimePicker popup below to the DateTimePicker input box
+ Bottom,
+ //Opens the DateTimePicker popup above to the DateTimePicker input box
+ Top,
+ }
+
+ class DateRangePicker extends ej.Widget {
+ static fn: DateRangePicker;
+ constructor(element: JQuery | Element, options?: DateRangePicker.Model);
+ static Locale: any;
+ model: DateRangePicker.Model;
+ defaults: DateRangePicker.Model;
+
+ /** Add the preset ranges to DateRangePicker popup.
+ * @param {string} Display name
+ * @param {Array} StartDate and endDate of range.
+ * @returns {void}
+ */
+ addRanges(label: string, range: any[]): void;
+
+ /** Clears the all ranges selections in DateRangePicker popup
+ * @returns {void}
+ */
+ clearRanges(): void;
+
+ /** Disables the DateRangePicker control.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Enable the DateRangePicker control, if it is in disabled state.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Returns the startDate and endDate values in the selected ranges in the DateRangePicker control.
+ * @returns {string}
+ */
+ getSelectedValue(): string;
+
+ /** Close the DateRangePicker popup, if it is in opened state.
+ * @returns {void}
+ */
+ popupHide(): void;
+
+ /** Opens the DateRangePicker popup.
+ * @returns {void}
+ */
+ popupShow(): void;
+
+ /** set the preset ranges to DateRangePicker popup.
+ * @returns {void}
+ */
+ setRange(): void;
+ }
+ export namespace DateRangePicker {
+
+ export interface Model {
+
+ /** Used to allow or restrict the editing in DateRangePicker input field directly. By setting false to this API, You can only pick the date ranges from DateRangePicker popup.
+ * @Default {true}
+ */
+ allowEdit?: boolean;
+
+ /** Sets the specified text value to the available buttons (Reset, Cancel, Apply) in the DateRangePicker popup.
+ * @Default {{ reset: Reset, cancel: Cancel, apply: Apply}}
+ */
+ buttonText?: any;
+
+ /** Sets the root CSS class for DateRangePicker theme, which is used to customize.
+ */
+ cssClass?: string;
+
+ /** Formats the date value of the DateRangePicker in to the specified date format. If this API is not specified, dateFormat will be set based on the current culture of DateRangePicker.
+ * @Default {MM/dd/yyyy}
+ */
+ dateFormat?: string;
+
+ /** Allows to embed the Timepicker align with the calendars in the page, two timepicker will be render, for selecting start and end date.
+ * @Default {false}
+ */
+ enableTimePicker?: boolean;
+
+ /** Enable or disable the DateRangePicker control.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Sustain the entire widget model of DateRangePicker even after form post or browser refresh
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Specifies the end date of the date ranges.
+ * @Default {null}
+ */
+ endDate?: string | Date;
+
+ /** Specifies the height of the DateRangePicker input.
+ * @Default {28px}
+ */
+ height?: string | number;
+
+ /** Change the DateRangePicker calendar and date format based on given culture.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Used to add the preset ranges. Added ranges using this, will show in popup in right side for easy selection of different preset ranges.
+ * @Default {null}
+ */
+ ranges?: any;
+
+ /** Specifies the start date of the date ranges
+ * @Default {null}
+ */
+ startDate?: string | Date;
+
+ /** Shows/hides the date icon button at right side of textbox, which is used to open or close the DateRangePicker calendar popup.
+ * @Default {true}
+ */
+ showPopupButton?: boolean;
+
+ /** DateRangePicker input and popup is displayed with rounded corner when this property is set to true.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Formats the date value of the DateRangePicker in to the specified time format. If this API is not specified, timeFormat will be set based on the current culture of DateRangePicker.
+ * @Default {HH:mm tt}
+ */
+ timeFormat?: string;
+
+ /** Separated two date values in string format to sets the date ranges in calendars.
+ * @Default {null}
+ */
+ value?: string;
+
+ /** Specifies the water mark text to be displayed in input text.
+ * @Default {Select Range}
+ */
+ watermarkText?: string;
+
+ /** Specifies the width of the DateRangePicker input text.
+ * @Default {160px}
+ */
+ width?: string | number;
+
+ /** Fires before closing the DateRangePicker popup. */
+ beforeClose?(e: BeforeCloseEventArgs): void;
+
+ /** Fires before opening the DateRangePicker popup. */
+ beforeOpen?(e: BeforeOpenEventArgs): void;
+
+ /** Fires when the DateRangePicker values get changed. */
+ onChange?(e: OnChangeEventArgs): void;
- /** Fires when DateRangePicker popup is closed. */
- close?(e: CloseEventArgs): void;
-
- /** Fires when the DateRangePicker is created successfully. */
- create?(e: CreateEventArgs): void;
-
- /** Fires when the DateRangePicker is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
-
- /** Fires when DateRangePicker popup is opened. */
- open?(e: OpenEventArgs): void;
+ /** Fires when DateRangePicker popup is closed. */
+ close?(e: CloseEventArgs): void;
+
+ /** Fires when the DateRangePicker is created successfully. */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when the DateRangePicker is destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Fires when DateRangePicker popup is opened. */
+ open?(e: OpenEventArgs): void;
- /** Fires when a date ranges is selected from the DateRangePicker popup. */
- select?(e: SelectEventArgs): void;
-}
+ /** Fires when a date ranges is selected from the DateRangePicker popup. */
+ select?(e: SelectEventArgs): void;
+ }
-export interface BeforeCloseEventArgs {
+ export interface BeforeCloseEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DateRangePicker model
- */
- model?: ej.DateRangePicker.Model;
+ /** returns the DateRangePicker model
+ */
+ model?: ej.DateRangePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the event parameters from DateRangePicker.
- */
- events?: any;
+ /** returns the event parameters from DateRangePicker.
+ */
+ events?: any;
- /** returns the DateRangePicker popup.
- */
- element?: HTMLElement;
-}
+ /** returns the DateRangePicker popup.
+ */
+ element?: HTMLElement;
+ }
-export interface BeforeOpenEventArgs {
+ export interface BeforeOpenEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DateRangePicker model.
- */
- model?: ej.DateRangePicker.Model;
+ /** returns the DateRangePicker model.
+ */
+ model?: ej.DateRangePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the event parameters from DateRangePicker.
- */
- events?: any;
+ /** returns the event parameters from DateRangePicker.
+ */
+ events?: any;
- /** returns the DateRangePicker popup.
- */
- element?: HTMLElement;
-}
+ /** returns the DateRangePicker popup.
+ */
+ element?: HTMLElement;
+ }
-export interface OnChangeEventArgs {
+ export interface OnChangeEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DateRangePicker model.
- */
- model?: ej.DateRangePicker.Model;
+ /** returns the DateRangePicker model.
+ */
+ model?: ej.DateRangePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the DateRangePicker input value.
- */
- value?: string;
+ /** returns the DateRangePicker input value.
+ */
+ value?: string;
- /** returns the startDate of DateRangePicker.
- */
- startDate?: any;
+ /** returns the startDate of DateRangePicker.
+ */
+ startDate?: any;
- /** returns the endDate of the DateRangePicker popup.
- */
- endDate?: any;
-}
+ /** returns the endDate of the DateRangePicker popup.
+ */
+ endDate?: any;
+ }
-export interface CloseEventArgs {
+ export interface CloseEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the current date object.
- */
- date?: any;
+ /** returns the current date object.
+ */
+ date?: any;
- /** returns the DateRangePicker model.
- */
- model?: ej.DateRangePicker.Model;
+ /** returns the DateRangePicker model.
+ */
+ model?: ej.DateRangePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the DateRangePicker popup.
- */
- element?: HTMLElement;
-}
+ /** returns the DateRangePicker popup.
+ */
+ element?: HTMLElement;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the DateRangePicker model.
- */
- model?: ej.DateRangePicker.Model;
+ /** returns the DateRangePicker model.
+ */
+ model?: ej.DateRangePicker.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
-
-export interface DestroyEventArgs {
-
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
-
- /** returns the DateRangePicker model.
- */
- model?: ej.DateRangePicker.Model;
-
- /** returns the name of the event.
- */
- type?: string;
-}
-
-export interface OpenEventArgs {
-
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
-
- /** returns the current date object.
- */
- date?: any;
-
- /** returns the DateRangePicker model.
- */
- model?: ej.DateRangePicker.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the DateRangePicker popup.
- */
- element?: HTMLElement;
-}
-
-export interface SelectEventArgs {
-
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
-
- /** returns the selected date object.
- */
- startDate?: any;
-
- /** returns the DateRangePicker model.
- */
- model?: ej.DateRangePicker.Model;
-
- /** returns the name of the event.
- */
- type?: string;
-
- /** returns the current date value.
- */
- endDate?: any;
-}
-}
-
-class Dialog extends ej.Widget {
- static fn: Dialog;
- constructor(element: JQuery | Element, options?: Dialog.Model);
- static Locale: any;
- model: Dialog.Model;
- defaults: Dialog.Model;
-
- /** Closes the dialog widget dynamically.
- * @returns {any}
- */
- close(): any;
-
- /** Collapses the content area when it is expanded.
- * @returns {any}
- */
- collapse(): any;
-
- /** Destroys the Dialog widget.
- * @returns {void}
- */
- destroy(): void;
-
- /** Expands the content area when it is collapsed.
- * @returns {any}
- */
- expand(): any;
-
- /** Checks whether the Dialog widget is opened or not. This methods returns Boolean value.
- * @returns {boolean}
- */
- isOpen(): boolean;
-
- /** Maximizes the Dialog widget.
- * @returns {any}
- */
- maximize(): any;
-
- /** Minimizes the Dialog widget.
- * @returns {any}
- */
- minimize(): any;
-
- /** Opens the Dialog widget.
- * @returns {any}
- */
- open(): any;
-
- /** Pins the dialog in its current position.
- * @returns {any}
- */
- pin(): any;
-
- /** Refreshes the dialog content dynamically.
- * @returns {void}
- */
- refresh(): void;
-
- /** Restores the dialog.
- * @returns {any}
- */
- restore(): any;
-
- /** Unpins the Dialog widget.
- * @returns {any}
- */
- unpin(): any;
-
- /** Sets the title for the Dialog widget.
- * @param {string} The title for the dialog widget.
- * @returns {any}
- */
- setTitle(Title: string): any;
-
- /** Sets the content for the Dialog widget dynamically.
- * @param {string} The content for the dialog widget. It accepts both string and HTML string.
- * @returns {any}
- */
- setContent(content: string): any;
-
- /** Sets the focus on the Dialog widget.
- * @returns {any}
- */
- focus(): any;
-}
-export namespace Dialog {
-
-export interface Model {
-
- /** Adds action buttons like close, minimize, pin, maximize in the dialog header.
- */
- actionButtons?: string[];
-
- /** Specifies the ajaxSettings option to load the content to the Dialog control.
- * @Default {null}
- */
- ajaxSettings?: AjaxSettings;
-
- /** Enables or disables draggable.
- */
- allowDraggable?: boolean;
-
- /** Enables or disables keyboard interaction.
- */
- allowKeyboardNavigation?: boolean;
-
- /** Customizes the Dialog widget animations. The Dialog widget can be animated while opening and closing the dialog.
- * In order to customize animation effects, you need to set “enableAnimation” as true. It contains the following sub properties.
- */
- animation?: any;
-
- /** Closes the dialog widget on pressing the ESC key when it is set to true.
- */
- closeOnEscape?: boolean;
-
- /** The selector for the container element. If the property is set, then dialog will append to the selected element and it is restricted to move only within the specified container element.
- */
- containment?: string;
-
- /** The content type to load the dialog content at run time. The possible values are null, AJAX, iframe and image. When it is null (default value),
- * the content inside dialog element will be displayed as content and when it is not null, the content will be loaded from the URL specified in the contentUrl property.
- */
- contentType?: string;
-
- /** The URL to load the dialog content (such as AJAX, image, and iframe). In order to load content from URL, you need to set contentType as ‘ajax’ or ‘iframe’ or ‘image’.
- */
- contentUrl?: string;
-
- /** The root class for the Dialog widget to customize the existing theme.
- */
- cssClass?: string;
-
- /** Enable or disables animation when the dialog is opened or closed.
- */
- enableAnimation?: boolean;
-
- /** Enables or disables the Dialog widget.
- */
- enabled?: boolean;
-
- /** Enable or disables modal dialog. The modal dialog acts like a child window that is displayed on top of the main window/screen and disables the main window interaction until it is closed.
- */
- enableModal?: boolean;
-
- /** Allows the current model values to be saved in local storage or browser cookies for state maintenance when it is set to true.
- */
- enablePersistence?: boolean;
-
- /** Allows the dialog to be resized. The dialog cannot be resized less than the minimum height, width values and greater than the maximum height and width.
- */
- enableResize?: boolean;
-
- /** Displays dialog content from right to left when set to true.
- */
- enableRTL?: boolean;
-
- /** The CSS class name to display the favicon in the dialog header. In order to display favicon, you need to set� showHeader� as true since the favicon will be displayed in the dialog header.
- */
- faviconCSS?: string;
-
- /** Sets the height for the dialog widget. It accepts both string and integer values. For example, it can accepts values like “auto”, “100%”, “100px” as string type
- * and “100”, “500” as integer type.
- */
- height?: string|number;
-
- /** Specifies the HTML Attributes of the Dialog.
- * @Default {{}}
- */
- htmlAttributes?: any;
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
+
+ /** returns the DateRangePicker model.
+ */
+ model?: ej.DateRangePicker.Model;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
+
+ export interface OpenEventArgs {
+
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
+
+ /** returns the current date object.
+ */
+ date?: any;
+
+ /** returns the DateRangePicker model.
+ */
+ model?: ej.DateRangePicker.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the DateRangePicker popup.
+ */
+ element?: HTMLElement;
+ }
+
+ export interface SelectEventArgs {
+
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
+
+ /** returns the selected date object.
+ */
+ startDate?: any;
+
+ /** returns the DateRangePicker model.
+ */
+ model?: ej.DateRangePicker.Model;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+
+ /** returns the current date value.
+ */
+ endDate?: any;
+ }
+ }
+
+ class Dialog extends ej.Widget {
+ static fn: Dialog;
+ constructor(element: JQuery | Element, options?: Dialog.Model);
+ static Locale: any;
+ model: Dialog.Model;
+ defaults: Dialog.Model;
+
+ /** Closes the dialog widget dynamically.
+ * @returns {any}
+ */
+ close(): any;
+
+ /** Collapses the content area when it is expanded.
+ * @returns {any}
+ */
+ collapse(): any;
+
+ /** Destroys the Dialog widget.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** Expands the content area when it is collapsed.
+ * @returns {any}
+ */
+ expand(): any;
+
+ /** Checks whether the Dialog widget is opened or not. This methods returns Boolean value.
+ * @returns {boolean}
+ */
+ isOpen(): boolean;
+
+ /** Maximizes the Dialog widget.
+ * @returns {any}
+ */
+ maximize(): any;
+
+ /** Minimizes the Dialog widget.
+ * @returns {any}
+ */
+ minimize(): any;
+
+ /** Opens the Dialog widget.
+ * @returns {any}
+ */
+ open(): any;
+
+ /** Pins the dialog in its current position.
+ * @returns {any}
+ */
+ pin(): any;
+
+ /** Refreshes the dialog content dynamically.
+ * @returns {void}
+ */
+ refresh(): void;
+
+ /** Restores the dialog.
+ * @returns {any}
+ */
+ restore(): any;
+
+ /** Unpins the Dialog widget.
+ * @returns {any}
+ */
+ unpin(): any;
+
+ /** Sets the title for the Dialog widget.
+ * @param {string} The title for the dialog widget.
+ * @returns {any}
+ */
+ setTitle(Title: string): any;
+
+ /** Sets the content for the Dialog widget dynamically.
+ * @param {string} The content for the dialog widget. It accepts both string and HTML string.
+ * @returns {any}
+ */
+ setContent(content: string): any;
+
+ /** Sets the focus on the Dialog widget.
+ * @returns {any}
+ */
+ focus(): any;
+ }
+ export namespace Dialog {
+
+ export interface Model {
+
+ /** Adds action buttons like close, minimize, pin, maximize in the dialog header.
+ */
+ actionButtons?: string[];
+
+ /** Specifies the ajaxSettings option to load the content to the Dialog control.
+ * @Default {null}
+ */
+ ajaxSettings?: AjaxSettings;
+
+ /** Enables or disables draggable.
+ */
+ allowDraggable?: boolean;
+
+ /** Enables or disables keyboard interaction.
+ */
+ allowKeyboardNavigation?: boolean;
+
+ /** Customizes the Dialog widget animations. The Dialog widget can be animated while opening and closing the dialog.
+ * In order to customize animation effects, you need to set “enableAnimation†as true. It contains the following sub properties.
+ */
+ animation?: any;
+
+ /** Closes the dialog widget on pressing the ESC key when it is set to true.
+ */
+ closeOnEscape?: boolean;
+
+ /** The selector for the container element. If the property is set, then dialog will append to the selected element and it is restricted to move only within the specified container element.
+ */
+ containment?: string;
+
+ /** The content type to load the dialog content at run time. The possible values are null, AJAX, iframe and image. When it is null (default value),
+ * the content inside dialog element will be displayed as content and when it is not null, the content will be loaded from the URL specified in the contentUrl property.
+ */
+ contentType?: string;
+
+ /** The URL to load the dialog content (such as AJAX, image, and iframe). In order to load content from URL, you need to set contentType as ‘ajax’ or ‘iframe’ or ‘image’.
+ */
+ contentUrl?: string;
+
+ /** The root class for the Dialog widget to customize the existing theme.
+ */
+ cssClass?: string;
+
+ /** Enable or disables animation when the dialog is opened or closed.
+ */
+ enableAnimation?: boolean;
+
+ /** Enables or disables the Dialog widget.
+ */
+ enabled?: boolean;
+
+ /** Enable or disables modal dialog. The modal dialog acts like a child window that is displayed on top of the main window/screen and disables the main window interaction until it is closed.
+ */
+ enableModal?: boolean;
+
+ /** Allows the current model values to be saved in local storage or browser cookies for state maintenance when it is set to true.
+ */
+ enablePersistence?: boolean;
+
+ /** Allows the dialog to be resized. The dialog cannot be resized less than the minimum height, width values and greater than the maximum height and width.
+ */
+ enableResize?: boolean;
+
+ /** Displays dialog content from right to left when set to true.
+ */
+ enableRTL?: boolean;
+
+ /** The CSS class name to display the favicon in the dialog header. In order to display favicon, you need to set showHeader as true since the favicon will be displayed in the dialog header.
+ */
+ faviconCSS?: string;
+
+ /** Sets the height for the dialog widget. It accepts both string and integer values. For example, it can accepts values like “autoâ€, “100%â€, “100px†as string type
+ * and “100â€, “500†as integer type.
+ */
+ height?: string | number;
+
+ /** Specifies the HTML Attributes of the Dialog.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
- /** Enable or disables responsive behavior.
- */
- isResponsive?: boolean;
+ /** Enable or disables responsive behavior.
+ */
+ isResponsive?: boolean;
- /** Default Value:{:.param}“en-US”
- */
- locale?: number;
+ /** Default Value:{:.param}“en-USâ€
+ */
+ locale?: number;
- /** Sets the maximum height for the dialog widget.
- */
- maxHeight?: number;
+ /** Sets the maximum height for the dialog widget.
+ */
+ maxHeight?: number;
- /** Sets the maximum width for the dialog widget.
- */
- maxWidth?: number;
+ /** Sets the maximum width for the dialog widget.
+ */
+ maxWidth?: number;
- /** Sets the minimum height for the dialog widget.
- */
- minHeight?: number;
+ /** Sets the minimum height for the dialog widget.
+ */
+ minHeight?: number;
- /** Sets the minimum width for the dialog widget.
- */
- minWidth?: number;
+ /** Sets the minimum width for the dialog widget.
+ */
+ minWidth?: number;
- /** Displays the Dialog widget at the given X and Y position.
- */
- position?: any;
+ /** Displays the Dialog widget at the given X and Y position.
+ */
+ position?: any;
- /** Shows or hides the dialog header.
- */
- showHeader?: boolean;
+ /** Shows or hides the dialog header.
+ */
+ showHeader?: boolean;
- /** The Dialog widget can be opened by default i.e. on initialization, when it is set to true.
- */
- showOnInit?: boolean;
+ /** The Dialog widget can be opened by default i.e. on initialization, when it is set to true.
+ */
+ showOnInit?: boolean;
- /** Enables or disables the rounder corner.
- */
- showRoundedCorner?: boolean;
+ /** Enables or disables the rounder corner.
+ */
+ showRoundedCorner?: boolean;
- /** The selector for the container element. If this property is set, the dialog will be displayed (positioned) based on its container.
- */
- target?: string;
+ /** The selector for the container element. If this property is set, the dialog will be displayed (positioned) based on its container.
+ */
+ target?: string;
- /** The title text to be displayed in the dialog header. In order to set title, you need to set showHeader as true since the title will be displayed in the dialog header.
- */
- title?: string;
+ /** The title text to be displayed in the dialog header. In order to set title, you need to set showHeader as true since the title will be displayed in the dialog header.
+ */
+ title?: string;
- /** Add or configure the tooltip text for actionButtons in the dialog header.
- */
- tooltip?: any;
+ /** Add or configure the tooltip text for actionButtons in the dialog header.
+ */
+ tooltip?: any;
- /** Sets the height for the dialog widget. It accepts both string and integer values. For example, it can accepts values like “auto”, “100%”,
- * “100px” as string type and “100”, “500” as integer type.
- */
- width?: string|number;
+ /** Sets the height for the dialog widget. It accepts both string and integer values. For example, it can accepts values like “autoâ€, “100%â€,
+ * “100px†as string type and “100â€, “500†as integer type.
+ */
+ width?: string | number;
- /** Sets the z-index value for the Dialog widget.
- */
- zIndex?: number;
+ /** Sets the z-index value for the Dialog widget.
+ */
+ zIndex?: number;
- /** Sets the Footer for the Dialog widget.
- */
- showFooter?: boolean;
+ /** Sets the Footer for the Dialog widget.
+ */
+ showFooter?: boolean;
- /** Sets the FooterTemplate for the Dialog widget.
- */
- footerTemplateId?: string;
+ /** Sets the FooterTemplate for the Dialog widget.
+ */
+ footerTemplateId?: string;
- /** This event is triggered before the dialog widgets gets open. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ /** This event is triggered before the dialog widgets gets open. */
+ beforeOpen?(e: BeforeOpenEventArgs): void;
- /** This event is triggered whenever the AJAX request fails to retrieve the dialog content. */
- ajaxError?(e: AjaxErrorEventArgs): void;
+ /** This event is triggered whenever the AJAX request fails to retrieve the dialog content. */
+ ajaxError?(e: AjaxErrorEventArgs): void;
- /** This event is triggered whenever the AJAX request to retrieve the dialog content, gets succeed. */
- ajaxSuccess?(e: AjaxSuccessEventArgs): void;
+ /** This event is triggered whenever the AJAX request to retrieve the dialog content, gets succeed. */
+ ajaxSuccess?(e: AjaxSuccessEventArgs): void;
- /** This event is triggered before the dialog widgets get closed. */
- beforeClose?(e: BeforeCloseEventArgs): void;
+ /** This event is triggered before the dialog widgets get closed. */
+ beforeClose?(e: BeforeCloseEventArgs): void;
- /** This event is triggered after the dialog widget is closed. */
- close?(e: CloseEventArgs): void;
+ /** This event is triggered after the dialog widget is closed. */
+ close?(e: CloseEventArgs): void;
- /** Triggered after the dialog content is loaded in DOM. */
- contentLoad?(e: ContentLoadEventArgs): void;
+ /** Triggered after the dialog content is loaded in DOM. */
+ contentLoad?(e: ContentLoadEventArgs): void;
- /** Triggered after the dialog is created successfully */
- create?(e: CreateEventArgs): void;
+ /** Triggered after the dialog is created successfully */
+ create?(e: CreateEventArgs): void;
- /** Triggered after the dialog widget is destroyed successfully */
- destroy?(e: DestroyEventArgs): void;
+ /** Triggered after the dialog widget is destroyed successfully */
+ destroy?(e: DestroyEventArgs): void;
- /** Triggered while the dialog is dragged. */
- drag?(e: DragEventArgs): void;
+ /** Triggered while the dialog is dragged. */
+ drag?(e: DragEventArgs): void;
- /** Triggered when the user starts dragging the dialog. */
- dragStart?(e: DragStartEventArgs): void;
+ /** Triggered when the user starts dragging the dialog. */
+ dragStart?(e: DragStartEventArgs): void;
- /** Triggered when the user stops dragging the dialog. */
- dragStop?(e: DragStopEventArgs): void;
+ /** Triggered when the user stops dragging the dialog. */
+ dragStop?(e: DragStopEventArgs): void;
- /** Triggered after the dialog is opened. */
- open?(e: OpenEventArgs): void;
+ /** Triggered after the dialog is opened. */
+ open?(e: OpenEventArgs): void;
- /** Triggered while the dialog is resized. */
- resize?(e: ResizeEventArgs): void;
+ /** Triggered while the dialog is resized. */
+ resize?(e: ResizeEventArgs): void;
- /** Triggered when the user starts resizing the dialog. */
- resizeStart?(e: ResizeStartEventArgs): void;
+ /** Triggered when the user starts resizing the dialog. */
+ resizeStart?(e: ResizeStartEventArgs): void;
- /** Triggered when the user stops resizing the dialog. */
- resizeStop?(e: ResizeStopEventArgs): void;
+ /** Triggered when the user stops resizing the dialog. */
+ resizeStop?(e: ResizeStopEventArgs): void;
- /** Triggered when the dialog content is expanded. */
- expand?(e: ExpandEventArgs): void;
+ /** Triggered when the dialog content is expanded. */
+ expand?(e: ExpandEventArgs): void;
- /** Triggered when the dialog content is collapsed. */
- collapse?(e: CollapseEventArgs): void;
+ /** Triggered when the dialog content is collapsed. */
+ collapse?(e: CollapseEventArgs): void;
- /** Triggered when the custom action button clicked. */
- actionButtonClick?(e: ActionButtonClickEventArgs): void;
-}
+ /** Triggered when the custom action button clicked. */
+ actionButtonClick?(e: ActionButtonClickEventArgs): void;
+ }
-export interface BeforeOpenEventArgs {
+ export interface BeforeOpenEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event
- */
- type?: string;
-}
+ /** Name of the event
+ */
+ type?: string;
+ }
-export interface AjaxErrorEventArgs {
+ export interface AjaxErrorEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** URL of the content.
- */
- URL?: string;
+ /** URL of the content.
+ */
+ URL?: string;
- /** Error page content.
- */
- responseText?: string;
+ /** Error page content.
+ */
+ responseText?: string;
- /** Error code.
- */
- status?: number;
+ /** Error code.
+ */
+ status?: number;
- /** The corresponding error description.
- */
- statusText?: string;
-}
+ /** The corresponding error description.
+ */
+ statusText?: string;
+ }
-export interface AjaxSuccessEventArgs {
+ export interface AjaxSuccessEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** URL of the content.
- */
- URL?: string;
+ /** URL of the content.
+ */
+ URL?: string;
- /** Response content.
- */
- data?: string;
-}
+ /** Response content.
+ */
+ data?: string;
+ }
-export interface BeforeCloseEventArgs {
+ export interface BeforeCloseEventArgs {
- /** Current event object.
- */
- event?: any;
+ /** Current event object.
+ */
+ event?: any;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
-}
+ /** Name of the event.
+ */
+ type?: string;
+ }
-export interface CloseEventArgs {
+ export interface CloseEventArgs {
- /** Current event object.
- */
- event?: any;
+ /** Current event object.
+ */
+ event?: any;
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event
- */
- type?: string;
-}
+ /** Name of the event
+ */
+ type?: string;
+ }
-export interface ContentLoadEventArgs {
+ export interface ContentLoadEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** URL of the content.
- */
- URL?: string;
+ /** URL of the content.
+ */
+ URL?: string;
- /** Content type
- */
- contentType?: any;
-}
+ /** Content type
+ */
+ contentType?: any;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
-}
+ /** Name of the event.
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
-}
+ /** Name of the event.
+ */
+ type?: string;
+ }
-export interface DragEventArgs {
+ export interface DragEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Current event object.
- */
- event?: any;
-}
+ /** Current event object.
+ */
+ event?: any;
+ }
-export interface DragStartEventArgs {
+ export interface DragStartEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Current event object.
- */
- event?: any;
-}
+ /** Current event object.
+ */
+ event?: any;
+ }
-export interface DragStopEventArgs {
+ export interface DragStopEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Current event object.
- */
- event?: any;
-}
+ /** Current event object.
+ */
+ event?: any;
+ }
-export interface OpenEventArgs {
+ export interface OpenEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
-}
+ /** Name of the event.
+ */
+ type?: string;
+ }
-export interface ResizeEventArgs {
+ export interface ResizeEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
+ /** Name of the event.
+ */
+ type?: string;
- /** Current event object.
- */
- event?: any;
-}
+ /** Current event object.
+ */
+ event?: any;
+ }
-export interface ResizeStartEventArgs {
+ export interface ResizeStartEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event
- */
- type?: string;
+ /** Name of the event
+ */
+ type?: string;
- /** Current event object.
- */
- event?: any;
-}
+ /** Current event object.
+ */
+ event?: any;
+ }
-export interface ResizeStopEventArgs {
+ export interface ResizeStopEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event
- */
- type?: string;
+ /** Name of the event
+ */
+ type?: string;
- /** Current event object.
- */
- event?: any;
-}
+ /** Current event object.
+ */
+ event?: any;
+ }
-export interface ExpandEventArgs {
+ export interface ExpandEventArgs {
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
- /** Name of the event.
- */
- type?: string;
-}
+ /** Name of the event.
+ */
+ type?: string;
+ }
-export interface CollapseEventArgs {
-
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
-
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
-
- /** Name of the event.
- */
- type?: string;
-}
-
-export interface ActionButtonClickEventArgs {
-
- /** Set this option to true to cancel the event.
- */
- cancel?: boolean;
-
- /** Name of the event target attribute.
- */
- buttonID?: string;
-
- /** Name of the event.
- */
- type?: string;
-
- /** Instance of the dialog model object.
- */
- model?: ej.Dialog.Model;
-
- /** Name of the event current target title.
- */
- currentTarget?: string;
-}
-
-export interface AjaxSettings {
-
- /** It specifies, whether to enable or disable asynchronous request.
- */
- async?: boolean;
-
- /** It specifies the page will be cached in the web browser.
- */
- cache?: boolean;
-
- /** It specifies the type of data is send in the query string.
- */
- contentType?: string;
-
- /** It specifies the data as an object, will be passed in the query string.
- */
- data?: any;
-
- /** It specifies the type of data that you're expecting back from the response.
- */
- dataType?: string;
-
- /** It specifies the HTTP request type.
- */
- type?: string;
-}
-}
-
-class DropDownList extends ej.Widget {
- static fn: DropDownList;
- constructor(element: JQuery | Element, options?: DropDownList.Model);
- static Locale: any;
- model: DropDownList.Model;
- defaults: DropDownList.Model;
-
- /** Adding a single item or an array of items into the DropDownList allows you to specify all the field attributes such as value, template, image URL, and HTML attributes for those items.
- * @param {any|Array} this parameter should have field attributes with respect to mapped field attributes and it's corresponding values to fields
- * @returns {void}
- */
- addItem(data: any|any[]): void;
-
- /** This method is used to select all the items in the DropDownList.
- * @returns {void}
- */
- checkAll(): void;
-
- /** Clears the text in the DropDownList textbox.
- * @returns {void}
- */
- clearText(): void;
-
- /** Destroys the DropDownList widget.
- * @returns {void}
- */
- destroy(): void;
-
- /** This property is used to disable the DropDownList widget.
- * @returns {void}
- */
- disable(): void;
-
- /** This property disables the set of items in the DropDownList.
- * @param {string|number|Array} disable the given index list items
- * @returns {void}
- */
- disableItemsByIndices(index: string|number|any[]): void;
-
- /** This property enables the DropDownList control.
- * @returns {void}
- */
- enable(): void;
-
- /** Enables an Item or set of Items that are disabled in the DropDownList
- * @param {string|number|Array} enable the given index list items if it's disabled
- * @returns {void}
- */
- enableItemsByIndices(index: string|number|any[]): void;
-
- /** This method retrieves the items using given value.
- * @param {string|number|any} Return the whole object of data based on given value
- * @returns {Array}
- */
- getItemDataByValue(value: string|number|any): any[];
-
- /** This method is used to retrieve the items that are bound with the DropDownList.
- * @returns {any}
- */
- getListData(): any;
-
- /** This method is used to get the selected items in the DropDownList.
- * @returns {Array}
- */
- getSelectedItem(): any[];
-
- /** This method is used to retrieve the items value that are selected in the DropDownList.
- * @returns {string}
- */
- getSelectedValue(): string;
-
- /** This method hides the suggestion popup in the DropDownList.
- * @returns {void}
- */
- hidePopup(): void;
-
- /** This method is used to select the list of items in the DropDownList through the Index of the items.
- * @param {string|number|Array} select the given index list items
- * @returns {void}
- */
- selectItemsByIndices(index: string|number|any[]): void;
-
- /** This method is used to select an item in the DropDownList by using the given text value.
- * @param {string|number|Array} select the list items relates to given text
- * @returns {void}
- */
- selectItemByText(index: string|number|any[]): void;
-
- /** This method is used to select an item in the DropDownList by using the given value.
- * @param {string|number|Array} select the list items relates to given values
- * @returns {void}
- */
- selectItemByValue(index: string|number|any[]): void;
-
- /** This method shows the DropDownList control with the suggestion popup.
- * @returns {void}
- */
- showPopup(): void;
-
- /** This method is used to unselect all the items in the DropDownList.
- * @returns {void}
- */
- unCheckAll(): void;
-
- /** This method is used to unselect the list of items in the DropDownList through Index of the items.
- * @param {string|number|Array} unselect the given index list items
- * @returns {void}
- */
- unselectItemsByIndices(index: string|number|any[]): void;
-
- /** This method is used to unselect an item in the DropDownList by using the given text value.
- * @param {string|number|Array} unselect the list items relates to given text
- * @returns {void}
- */
- unselectItemByText(index: string|number|any[]): void;
-
- /** This method is used to unselect an item in the DropDownList by using the given value.
- * @param {string|number|Array} unselect the list items relates to given values
- * @returns {void}
- */
- unselectItemByValue(index: string|number|any[]): void;
-}
-export namespace DropDownList {
-
-export interface Model {
-
- /** The Virtual Scrolling(lazy loading) feature is used to display a large amount of data that you require without buffering the entire load of a huge database records in the DropDownList,
- * that is, when scrolling, an AJAX request is sent to fetch some amount of data from the server dynamically. To achieve this scenario with DropDownList, set the allowVirtualScrolling to true.
- * @Default {false}
- */
- allowVirtualScrolling?: boolean;
-
- /** The cascading DropDownLists is a series of two or more DropDownLists in which each DropDownList is filtered according to the previous DropDownList’s value.
- * @Default {null}
- */
- cascadeTo?: string;
-
- /** Sets the case sensitivity of the search operation. It supports both enableFilterSearch and enableIncrementalSearch property.
- * @Default {false}
- */
- caseSensitiveSearch?: boolean;
-
- /** Dropdown widget's style and appearance can be controlled based on 13 different default built-in themes.You can customize the appearance of the dropdown by using the cssClass property.
- * You need to specify a class name in the cssClass property and the same class name is used before the class definitions wherever the custom styles are applied.
- */
- cssClass?: string;
-
- /** This property is used to serve data from the data services based on the query provided. To bind the data to the dropdown widget,
- * the dataSource property is assigned with the instance of the ej.DataManager.
- * @Default {null}
- */
- dataSource?: any;
-
- /** Sets the separator when the multiSelectMode with delimiter option or checkbox is enabled with the dropdown. When you enter the delimiter value,the texts after the delimiter are considered
- * as a separate word or query. The delimiter string is a single character and must be a symbol. Mostly, the delimiter symbol is used as comma (,) or semi-colon (;) or any other special character.
- * @Default {','}
- */
- delimiterChar?: string;
-
- /** The enabled Animation property uses the easeOutQuad animation to SlideDown and SlideUp the Popup list in 200 and 100 milliseconds, respectively.
- * @Default {false}
- */
- enableAnimation?: boolean;
-
- /** This property is used to indicate whether the DropDownList control responds to the user interaction or not. By default, the control is in the enabled mode
- * and you can disable it by setting it to false.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Specifies to perform incremental search for the selection of items from the DropDownList with the help of this property. This helps in selecting the item by using the typed character.
- * @Default {true}
- */
- enableIncrementalSearch?: boolean;
-
- /** This property selects the item in the DropDownList when the item is entered in the Search textbox.
- * @Default {false}
- */
- enableFilterSearch?: boolean;
-
- /** Saves the current model value to the browser cookies for state maintenance. While refreshing the DropDownList control page, it retains the model value and
- * it is applied from the browser cookies.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** This enables the resize handler to resize the popup to any size.
- * @Default {false}
- */
- enablePopupResize?: boolean;
-
- /** Sets the DropDownList textbox direction from right to left align.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** This property is used to sort the Items in the DropDownList. By default, it sorts the items in an ascending order.
- * @Default {false}
- */
- enableSorting?: boolean;
-
- /** Specifies the mapping fields for the data items of the DropDownList.
- * @Default {null}
- */
- fields?: Fields;
-
- /** When the enableFilterSearch property value is set to true, the values in the DropDownList shows the items starting with or containing the key word/letter typed in the Search textbox.
- * @Default {ej.FilterType.Contains}
- */
- filterType?: ej.FilterType|string;
-
- /** Used to create visualized header for dropdown items
- * @Default {null}
- */
- headerTemplate?: string;
-
- /** Defines the height of the DropDownList textbox.
- * @Default {null}
- */
- height?: string|number;
-
- /** It sets the given HTML attributes for the DropDownList control such as ID, name, disabled, etc.
- * @Default {null}
- */
- htmlAttributes?: any;
-
- /** Data can be fetched in the DropDownList control by using the DataSource, specifying the number of items.
- * @Default {5}
- */
- itemsCount?: number;
-
- /** Allows the user to set the particular country or region language for the DropDownList.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Defines the maximum height of the suggestion box. This property restricts the maximum height of the popup when resize is enabled.
- * @Default {null}
- */
- maxPopupHeight?: string|number;
-
- /** Defines the minimum height of the suggestion box. This property restricts the minimum height of the popup when resize is enabled.
- * @Default {null}
- */
- minPopupHeight?: string|number;
-
- /** Defines the maximum width of the suggestion box. This property restricts the maximum width of the popup when resize is enabled.
- * @Default {null}
- */
- maxPopupWidth?: string|number;
-
- /** Defines the minimum height of the suggestion box. This property restricts the minimum height of the popup when resize is enabled.
- * @Default {0}
- */
- minPopupWidth?: string|number;
-
- /** With the help of this property, you can make a single or multi selection with the DropDownList and display the text in two modes, delimiter and visual mode.
- * In delimiter mode, you can separate the items by using the delimiter character such as comma (,) or semi-colon (;) or any other special character.
- * In the visual mode, the items are showcased like boxes with close icon in the textbox.
- * @Default {ej.MultiSelectMode.None}
- */
- multiSelectMode?: ej.MultiSelectMode|string;
-
- /** Defines the height of the suggestion popup box in the DropDownList control.
- * @Default {152px}
- */
- popupHeight?: string|number;
-
- /** Defines the width of the suggestion popup box in the DropDownList control.
- * @Default {auto}
- */
- popupWidth?: string|number;
-
- /** Specifies the query to retrieve the data from the DataSource.
- * @Default {null}
- */
- query?: any;
-
- /** Specifies that the DropDownList textbox values should be read-only.
- * @Default {false}
- */
- readOnly?: boolean;
-
- /** Specifies an item to be selected in the DropDownList.
- * @Default {null}
- */
- selectedIndex?: number;
-
- /** Specifies the selectedItems for the DropDownList.
- * @Default {[]}
- */
- selectedIndices?: any[];
-
- /** Selects multiple items in the DropDownList with the help of the checkbox control. To achieve this, enable the showCheckbox option to true.
- * @Default {false}
- */
- showCheckbox?: boolean;
-
- /** DropDownList control is displayed with the popup seen.
- * @Default {false}
- */
- showPopupOnLoad?: boolean;
-
- /** DropDownList textbox displayed with the rounded corner style.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** When the enableSorting property value is set to true, this property helps to sort the items either in ascending or descending order
- * @Default {ej.SortOrder.Ascending}
- */
- sortOrder?: ej.SortOrder|string;
-
- /** Specifies the targetID for the DropDownList’s items.
- * @Default {null}
- */
- targetID?: string;
-
- /** By default, you can add any text or image to the DropDownList item. To customize the item layout or to create your own visualized elements, you can use this template support.
- * @Default {null}
- */
- template?: string;
-
- /** Defines the text value that is displayed in the DropDownList textbox.
- * @Default {null}
- */
- text?: string;
-
- /** Sets the jQuery validation error message in the DropDownList
- * @Default {null}
- */
- validationMessage?: any;
-
- /** Sets the jQuery validation rules in the Dropdownlist.
- * @Default {null}
- */
- validationRules?: any;
-
- /** Specifies the value (text content) for the DropDownList control.
- * @Default {null}
- */
- value?: string|number;
-
- /** Specifies a short hint that describes the expected value of the DropDownList control.
- * @Default {null}
- */
- watermarkText?: string;
-
- /** Defines the width of the DropDownList textbox.
- * @Default {null}
- */
- width?: string|number;
+ export interface CollapseEventArgs {
+
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
+
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
+
+ /** Name of the event.
+ */
+ type?: string;
+ }
+
+ export interface ActionButtonClickEventArgs {
+
+ /** Set this option to true to cancel the event.
+ */
+ cancel?: boolean;
+
+ /** Name of the event target attribute.
+ */
+ buttonID?: string;
+
+ /** Name of the event.
+ */
+ type?: string;
+
+ /** Instance of the dialog model object.
+ */
+ model?: ej.Dialog.Model;
+
+ /** Name of the event current target title.
+ */
+ currentTarget?: string;
+ }
+
+ export interface AjaxSettings {
+
+ /** It specifies, whether to enable or disable asynchronous request.
+ */
+ async?: boolean;
+
+ /** It specifies the page will be cached in the web browser.
+ */
+ cache?: boolean;
+
+ /** It specifies the type of data is send in the query string.
+ */
+ contentType?: string;
+
+ /** It specifies the data as an object, will be passed in the query string.
+ */
+ data?: any;
+
+ /** It specifies the type of data that you're expecting back from the response.
+ */
+ dataType?: string;
+
+ /** It specifies the HTTP request type.
+ */
+ type?: string;
+ }
+ }
+
+ class DropDownList extends ej.Widget {
+ static fn: DropDownList;
+ constructor(element: JQuery | Element, options?: DropDownList.Model);
+ static Locale: any;
+ model: DropDownList.Model;
+ defaults: DropDownList.Model;
+
+ /** Adding a single item or an array of items into the DropDownList allows you to specify all the field attributes such as value, template, image URL, and HTML attributes for those items.
+ * @param {any|Array} this parameter should have field attributes with respect to mapped field attributes and it's corresponding values to fields
+ * @returns {void}
+ */
+ addItem(data: any | any[]): void;
+
+ /** This method is used to select all the items in the DropDownList.
+ * @returns {void}
+ */
+ checkAll(): void;
+
+ /** Clears the text in the DropDownList textbox.
+ * @returns {void}
+ */
+ clearText(): void;
+
+ /** Destroys the DropDownList widget.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** This property is used to disable the DropDownList widget.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** This property disables the set of items in the DropDownList.
+ * @param {string|number|Array} disable the given index list items
+ * @returns {void}
+ */
+ disableItemsByIndices(index: string | number | any[]): void;
+
+ /** This property enables the DropDownList control.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Enables an Item or set of Items that are disabled in the DropDownList
+ * @param {string|number|Array} enable the given index list items if it's disabled
+ * @returns {void}
+ */
+ enableItemsByIndices(index: string | number | any[]): void;
+
+ /** This method retrieves the items using given value.
+ * @param {string|number|any} Return the whole object of data based on given value
+ * @returns {Array}
+ */
+ getItemDataByValue(value: string | number | any): any[];
+
+ /** This method is used to retrieve the items that are bound with the DropDownList.
+ * @returns {any}
+ */
+ getListData(): any;
+
+ /** This method is used to get the selected items in the DropDownList.
+ * @returns {Array}
+ */
+ getSelectedItem(): any[];
+
+ /** This method is used to retrieve the items value that are selected in the DropDownList.
+ * @returns {string}
+ */
+ getSelectedValue(): string;
+
+ /** This method hides the suggestion popup in the DropDownList.
+ * @returns {void}
+ */
+ hidePopup(): void;
+
+ /** This method is used to select the list of items in the DropDownList through the Index of the items.
+ * @param {string|number|Array} select the given index list items
+ * @returns {void}
+ */
+ selectItemsByIndices(index: string | number | any[]): void;
+
+ /** This method is used to select an item in the DropDownList by using the given text value.
+ * @param {string|number|Array} select the list items relates to given text
+ * @returns {void}
+ */
+ selectItemByText(index: string | number | any[]): void;
+
+ /** This method is used to select an item in the DropDownList by using the given value.
+ * @param {string|number|Array} select the list items relates to given values
+ * @returns {void}
+ */
+ selectItemByValue(index: string | number | any[]): void;
+
+ /** This method shows the DropDownList control with the suggestion popup.
+ * @returns {void}
+ */
+ showPopup(): void;
+
+ /** This method is used to unselect all the items in the DropDownList.
+ * @returns {void}
+ */
+ unCheckAll(): void;
+
+ /** This method is used to unselect the list of items in the DropDownList through Index of the items.
+ * @param {string|number|Array} unselect the given index list items
+ * @returns {void}
+ */
+ unselectItemsByIndices(index: string | number | any[]): void;
+
+ /** This method is used to unselect an item in the DropDownList by using the given text value.
+ * @param {string|number|Array} unselect the list items relates to given text
+ * @returns {void}
+ */
+ unselectItemByText(index: string | number | any[]): void;
+
+ /** This method is used to unselect an item in the DropDownList by using the given value.
+ * @param {string|number|Array} unselect the list items relates to given values
+ * @returns {void}
+ */
+ unselectItemByValue(index: string | number | any[]): void;
+ }
+ export namespace DropDownList {
+
+ export interface Model {
+
+ /** The Virtual Scrolling(lazy loading) feature is used to display a large amount of data that you require without buffering the entire load of a huge database records in the DropDownList,
+ * that is, when scrolling, an AJAX request is sent to fetch some amount of data from the server dynamically. To achieve this scenario with DropDownList, set the allowVirtualScrolling to true.
+ * @Default {false}
+ */
+ allowVirtualScrolling?: boolean;
+
+ /** The cascading DropDownLists is a series of two or more DropDownLists in which each DropDownList is filtered according to the previous DropDownList’s value.
+ * @Default {null}
+ */
+ cascadeTo?: string;
+
+ /** Sets the case sensitivity of the search operation. It supports both enableFilterSearch and enableIncrementalSearch property.
+ * @Default {false}
+ */
+ caseSensitiveSearch?: boolean;
+
+ /** Dropdown widget's style and appearance can be controlled based on 13 different default built-in themes.You can customize the appearance of the dropdown by using the cssClass property.
+ * You need to specify a class name in the cssClass property and the same class name is used before the class definitions wherever the custom styles are applied.
+ */
+ cssClass?: string;
+
+ /** This property is used to serve data from the data services based on the query provided. To bind the data to the dropdown widget,
+ * the dataSource property is assigned with the instance of the ej.DataManager.
+ * @Default {null}
+ */
+ dataSource?: any;
+
+ /** Sets the separator when the multiSelectMode with delimiter option or checkbox is enabled with the dropdown. When you enter the delimiter value,the texts after the delimiter are considered
+ * as a separate word or query. The delimiter string is a single character and must be a symbol. Mostly, the delimiter symbol is used as comma (,) or semi-colon (;) or any other special character.
+ * @Default {','}
+ */
+ delimiterChar?: string;
+
+ /** The enabled Animation property uses the easeOutQuad animation to SlideDown and SlideUp the Popup list in 200 and 100 milliseconds, respectively.
+ * @Default {false}
+ */
+ enableAnimation?: boolean;
+
+ /** This property is used to indicate whether the DropDownList control responds to the user interaction or not. By default, the control is in the enabled mode
+ * and you can disable it by setting it to false.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Specifies to perform incremental search for the selection of items from the DropDownList with the help of this property. This helps in selecting the item by using the typed character.
+ * @Default {true}
+ */
+ enableIncrementalSearch?: boolean;
+
+ /** This property selects the item in the DropDownList when the item is entered in the Search textbox.
+ * @Default {false}
+ */
+ enableFilterSearch?: boolean;
+
+ /** Saves the current model value to the browser cookies for state maintenance. While refreshing the DropDownList control page, it retains the model value and
+ * it is applied from the browser cookies.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** This enables the resize handler to resize the popup to any size.
+ * @Default {false}
+ */
+ enablePopupResize?: boolean;
+
+ /** Sets the DropDownList textbox direction from right to left align.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** This property is used to sort the Items in the DropDownList. By default, it sorts the items in an ascending order.
+ * @Default {false}
+ */
+ enableSorting?: boolean;
+
+ /** Specifies the mapping fields for the data items of the DropDownList.
+ * @Default {null}
+ */
+ fields?: Fields;
+
+ /** When the enableFilterSearch property value is set to true, the values in the DropDownList shows the items starting with or containing the key word/letter typed in the Search textbox.
+ * @Default {ej.FilterType.Contains}
+ */
+ filterType?: ej.FilterType | string;
+
+ /** Used to create visualized header for dropdown items
+ * @Default {null}
+ */
+ headerTemplate?: string;
+
+ /** Defines the height of the DropDownList textbox.
+ * @Default {null}
+ */
+ height?: string | number;
+
+ /** It sets the given HTML attributes for the DropDownList control such as ID, name, disabled, etc.
+ * @Default {null}
+ */
+ htmlAttributes?: any;
+
+ /** Data can be fetched in the DropDownList control by using the DataSource, specifying the number of items.
+ * @Default {5}
+ */
+ itemsCount?: number;
+
+ /** Allows the user to set the particular country or region language for the DropDownList.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Defines the maximum height of the suggestion box. This property restricts the maximum height of the popup when resize is enabled.
+ * @Default {null}
+ */
+ maxPopupHeight?: string | number;
+
+ /** Defines the minimum height of the suggestion box. This property restricts the minimum height of the popup when resize is enabled.
+ * @Default {null}
+ */
+ minPopupHeight?: string | number;
+
+ /** Defines the maximum width of the suggestion box. This property restricts the maximum width of the popup when resize is enabled.
+ * @Default {null}
+ */
+ maxPopupWidth?: string | number;
+
+ /** Defines the minimum height of the suggestion box. This property restricts the minimum height of the popup when resize is enabled.
+ * @Default {0}
+ */
+ minPopupWidth?: string | number;
+
+ /** With the help of this property, you can make a single or multi selection with the DropDownList and display the text in two modes, delimiter and visual mode.
+ * In delimiter mode, you can separate the items by using the delimiter character such as comma (,) or semi-colon (;) or any other special character.
+ * In the visual mode, the items are showcased like boxes with close icon in the textbox.
+ * @Default {ej.MultiSelectMode.None}
+ */
+ multiSelectMode?: ej.MultiSelectMode | string;
+
+ /** Defines the height of the suggestion popup box in the DropDownList control.
+ * @Default {152px}
+ */
+ popupHeight?: string | number;
+
+ /** Defines the width of the suggestion popup box in the DropDownList control.
+ * @Default {auto}
+ */
+ popupWidth?: string | number;
+
+ /** Specifies the query to retrieve the data from the DataSource.
+ * @Default {null}
+ */
+ query?: any;
+
+ /** Specifies that the DropDownList textbox values should be read-only.
+ * @Default {false}
+ */
+ readOnly?: boolean;
+
+ /** Specifies an item to be selected in the DropDownList.
+ * @Default {null}
+ */
+ selectedIndex?: number;
+
+ /** Specifies the selectedItems for the DropDownList.
+ * @Default {[]}
+ */
+ selectedIndices?: any[];
+
+ /** Selects multiple items in the DropDownList with the help of the checkbox control. To achieve this, enable the showCheckbox option to true.
+ * @Default {false}
+ */
+ showCheckbox?: boolean;
+
+ /** DropDownList control is displayed with the popup seen.
+ * @Default {false}
+ */
+ showPopupOnLoad?: boolean;
+
+ /** DropDownList textbox displayed with the rounded corner style.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** When the enableSorting property value is set to true, this property helps to sort the items either in ascending or descending order
+ * @Default {ej.SortOrder.Ascending}
+ */
+ sortOrder?: ej.SortOrder | string;
+
+ /** Specifies the targetID for the DropDownList’s items.
+ * @Default {null}
+ */
+ targetID?: string;
+
+ /** By default, you can add any text or image to the DropDownList item. To customize the item layout or to create your own visualized elements, you can use this template support.
+ * @Default {null}
+ */
+ template?: string;
+
+ /** Defines the text value that is displayed in the DropDownList textbox.
+ * @Default {null}
+ */
+ text?: string | number;
+
+ /** Sets the jQuery validation error message in the DropDownList
+ * @Default {null}
+ */
+ validationMessage?: any;
+
+ /** Sets the jQuery validation rules in the Dropdownlist.
+ * @Default {null}
+ */
+ validationRules?: any;
+
+ /** Specifies the value (text content) for the DropDownList control.
+ * @Default {null}
+ */
+ value?: string | number;
+
+ /** Specifies a short hint that describes the expected value of the DropDownList control.
+ * @Default {null}
+ */
+ watermarkText?: string;
+
+ /** Defines the width of the DropDownList textbox.
+ * @Default {null}
+ */
+ width?: string | number;
- /** The Virtual Scrolling feature is used to display a large amount of records in the DropDownList, that is, when scrolling, an AJAX request is sent to fetch some amount of data from
- * the server dynamically. To achieve this scenario with DropDownList, set the allowVirtualScrolling to true.
- * You can set the itemsCount property that represents the number of items to be fetched from the server on every AJAX request.
- * @Default {normal}
- */
- virtualScrollMode?: ej.VirtualScrollMode|string;
+ /** The Virtual Scrolling feature is used to display a large amount of records in the DropDownList, that is, when scrolling, an AJAX request is sent to fetch some amount of data from
+ * the server dynamically. To achieve this scenario with DropDownList, set the allowVirtualScrolling to true.
+ * You can set the itemsCount property that represents the number of items to be fetched from the server on every AJAX request.
+ * @Default {normal}
+ */
+ virtualScrollMode?: ej.VirtualScrollMode | string;
- /** Fires the action before the XHR request. */
- actionBegin?(e: ActionBeginEventArgs): void;
+ /** Fires the action before the XHR request. */
+ actionBegin?(e: ActionBeginEventArgs): void;
- /** Fires the action when the list of items is bound to the DropDownList by xhr post calling */
- actionComplete?(e: ActionCompleteEventArgs): void;
+ /** Fires the action when the list of items is bound to the DropDownList by xhr post calling */
+ actionComplete?(e: ActionCompleteEventArgs): void;
- /** Fires the action when the xhr post calling failed on remote data binding with the DropDownList control. */
- actionFailure?(e: ActionFailureEventArgs): void;
+ /** Fires the action when the xhr post calling failed on remote data binding with the DropDownList control. */
+ actionFailure?(e: ActionFailureEventArgs): void;
- /** Fires the action when the xhr post calling succeed on remote data binding with the DropDownList control */
- actionSuccess?(e: ActionSuccessEventArgs): void;
+ /** Fires the action when the xhr post calling succeed on remote data binding with the DropDownList control */
+ actionSuccess?(e: ActionSuccessEventArgs): void;
- /** Fires the action before the popup is ready to hide. */
- beforePopupHide?(e: BeforePopupHideEventArgs): void;
+ /** Fires the action before the popup is ready to hide. */
+ beforePopupHide?(e: BeforePopupHideEventArgs): void;
- /** Fires the action before the popup is ready to be displayed. */
- beforePopupShown?(e: BeforePopupShownEventArgs): void;
+ /** Fires the action before the popup is ready to be displayed. */
+ beforePopupShown?(e: BeforePopupShownEventArgs): void;
- /** Fires when the cascading happens between two DropDownList exactly after the value changes in the first dropdown and before filtering in the second Dropdown. */
- cascade?(e: CascadeEventArgs): void;
+ /** Fires when the cascading happens between two DropDownList exactly after the value changes in the first dropdown and before filtering in the second Dropdown. */
+ cascade?(e: CascadeEventArgs): void;
- /** Fires the action when the DropDownList control’s value is changed. */
- change?(e: ChangeEventArgs): void;
+ /** Fires the action when the DropDownList control’s value is changed. */
+ change?(e: ChangeEventArgs): void;
- /** Fires the action when the list item checkbox value is changed. */
- checkChange?(e: CheckChangeEventArgs): void;
+ /** Fires the action when the list item checkbox value is changed. */
+ checkChange?(e: CheckChangeEventArgs): void;
- /** Fires the action once the DropDownList is created. */
- create?(e: CreateEventArgs): void;
+ /** Fires the action once the DropDownList is created. */
+ create?(e: CreateEventArgs): void;
- /** Fires the action when the list items is bound to the DropDownList. */
- dataBound?(e: DataBoundEventArgs): void;
+ /** Fires the action when the list items is bound to the DropDownList. */
+ dataBound?(e: DataBoundEventArgs): void;
- /** Fires the action when the DropDownList is destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ /** Fires the action when the DropDownList is destroyed. */
+ destroy?(e: DestroyEventArgs): void;
- /** Fires the action when the DropDownList is focused. */
- focusIn?(e: FocusInEventArgs): void;
+ /** Fires the action when the DropDownList is focused. */
+ focusIn?(e: FocusInEventArgs): void;
- /** Fires the action when the DropDownList is about to lose focus. */
- focusOut?(e: FocusOutEventArgs): void;
+ /** Fires the action when the DropDownList is about to lose focus. */
+ focusOut?(e: FocusOutEventArgs): void;
- /** Fires the action, once the popup is closed */
- popupHide?(e: PopupHideEventArgs): void;
+ /** Fires the action, once the popup is closed */
+ popupHide?(e: PopupHideEventArgs): void;
- /** Fires the action, when the popup is resized. */
- popupResize?(e: PopupResizeEventArgs): void;
+ /** Fires the action, when the popup is resized. */
+ popupResize?(e: PopupResizeEventArgs): void;
- /** Fires the action, once the popup is opened. */
- popupShown?(e: PopupShownEventArgs): void;
+ /** Fires the action, once the popup is opened. */
+ popupShown?(e: PopupShownEventArgs): void;
- /** Fires the action, when resizing a popup starts. */
- popupResizeStart?(e: PopupResizeStartEventArgs): void;
+ /** Fires the action, when resizing a popup starts. */
+ popupResizeStart?(e: PopupResizeStartEventArgs): void;
- /** Fires the action, when the popup resizing is stopped. */
- popupResizeStop?(e: PopupResizeStopEventArgs): void;
+ /** Fires the action, when the popup resizing is stopped. */
+ popupResizeStop?(e: PopupResizeStopEventArgs): void;
- /** Fires the action before filtering the list items that starts in the DropDownList when the enableFilterSearch is enabled. */
- search?(e: SearchEventArgs): void;
+ /** Fires the action before filtering the list items that starts in the DropDownList when the enableFilterSearch is enabled. */
+ search?(e: SearchEventArgs): void;
- /** Fires the action, when the list of item is selected. */
- select?(e: SelectEventArgs): void;
-}
+ /** Fires the action, when the list of item is selected. */
+ select?(e: SelectEventArgs): void;
+ }
-export interface ActionBeginEventArgs {
+ export interface ActionBeginEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface ActionCompleteEventArgs {
+ export interface ActionCompleteEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns number of times trying to fetch the data
- */
- count?: number;
+ /** Returns number of times trying to fetch the data
+ */
+ count?: number;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** Returns the query for data retrieval
- */
- query?: any;
+ /** Returns the query for data retrieval
+ */
+ query?: any;
- /** Returns the query for data retrieval from the Database
- */
- request?: any;
+ /** Returns the query for data retrieval from the Database
+ */
+ request?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** Returns the number of items fetched from remote data
- */
- result?: any[];
+ /** Returns the number of items fetched from remote data
+ */
+ result?: any[];
- /** Returns the requested data
- */
- xhr?: any;
-}
+ /** Returns the requested data
+ */
+ xhr?: any;
+ }
-export interface ActionFailureEventArgs {
+ export interface ActionFailureEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the error message
- */
- error?: any;
+ /** Returns the error message
+ */
+ error?: any;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** Returns the query for data retrieval
- */
- query?: any;
+ /** Returns the query for data retrieval
+ */
+ query?: any;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface ActionSuccessEventArgs {
+ export interface ActionSuccessEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns number of times trying to fetch the data
- */
- count?: number;
+ /** Returns number of times trying to fetch the data
+ */
+ count?: number;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** Returns the query for data retrieval
- */
- query?: any;
+ /** Returns the query for data retrieval
+ */
+ query?: any;
- /** Returns the query for data retrieval from the Database
- */
- request?: any;
+ /** Returns the query for data retrieval from the Database
+ */
+ request?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** Returns the number of items fetched from remote data
- */
- result?: any[];
+ /** Returns the number of items fetched from remote data
+ */
+ result?: any[];
- /** Returns the requested data
- */
- xhr?: any;
-}
+ /** Returns the requested data
+ */
+ xhr?: any;
+ }
-export interface BeforePopupHideEventArgs {
+ export interface BeforePopupHideEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the selected text
- */
- text?: string;
+ /** returns the selected text
+ */
+ text?: string;
- /** returns the selected value
- */
- value?: string;
-}
+ /** returns the selected value
+ */
+ value?: string;
+ }
-export interface BeforePopupShownEventArgs {
+ export interface BeforePopupShownEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the selected text
- */
- text?: string;
+ /** returns the selected text
+ */
+ text?: string;
- /** returns the selected value
- */
- value?: string;
-}
+ /** returns the selected value
+ */
+ value?: string;
+ }
-export interface CascadeEventArgs {
+ export interface CascadeEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the cascading dropdown model.
- */
- cascadeModel?: any;
+ /** Returns the cascading dropdown model.
+ */
+ cascadeModel?: any;
- /** returns the current selected value in first dropdown.
- */
- cascadeValue?: string;
+ /** returns the current selected value in first dropdown.
+ */
+ cascadeValue?: string;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the default filter action for second dropdown data should happen or not.
- */
- requiresDefaultFilter?: boolean;
+ /** returns the default filter action for second dropdown data should happen or not.
+ */
+ requiresDefaultFilter?: boolean;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface ChangeEventArgs {
+ export interface ChangeEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the selected item with checkbox checked or not.
- */
- isChecked?: boolean;
+ /** Returns the selected item with checkbox checked or not.
+ */
+ isChecked?: boolean;
- /** Returns the selected item ID.
- */
- itemId?: string;
+ /** Returns the selected item ID.
+ */
+ itemId?: string;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** Returns the selected item text.
- */
- selectedText?: string;
+ /** Returns the selected item text.
+ */
+ selectedText?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** Returns the selected text.
- */
- text?: string;
+ /** Returns the selected text.
+ */
+ text?: string;
- /** Returns the selected value.
- */
- value?: string;
-}
+ /** Returns the selected value.
+ */
+ value?: string;
+ }
-export interface CheckChangeEventArgs {
+ export interface CheckChangeEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the selected item with checkbox checked or not.
- */
- isChecked?: boolean;
+ /** Returns the selected item with checkbox checked or not.
+ */
+ isChecked?: boolean;
- /** Returns the selected item ID.
- */
- itemId?: string;
+ /** Returns the selected item ID.
+ */
+ itemId?: string;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** Returns the selected item text.
- */
- selectedText?: string;
+ /** Returns the selected item text.
+ */
+ selectedText?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** Returns the selected text.
- */
- text?: string;
+ /** Returns the selected text.
+ */
+ text?: string;
- /** Returns the selected value.
- */
- value?: string;
-}
+ /** Returns the selected value.
+ */
+ value?: string;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface DataBoundEventArgs {
+ export interface DataBoundEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the data that is bound to DropDownList
- */
- data?: any;
-}
+ /** returns the data that is bound to DropDownList
+ */
+ data?: any;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** its value is set as true,if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** its value is set as true,if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface FocusInEventArgs {
+ export interface FocusInEventArgs {
- /** its value is set as true,if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** its value is set as true,if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface FocusOutEventArgs {
+ export interface FocusOutEventArgs {
- /** its value is set as true,if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** its value is set as true,if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface PopupHideEventArgs {
+ export interface PopupHideEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the selected text
- */
- text?: string;
+ /** returns the selected text
+ */
+ text?: string;
- /** returns the selected value
- */
- value?: string;
-}
+ /** returns the selected value
+ */
+ value?: string;
+ }
-export interface PopupResizeEventArgs {
+ export interface PopupResizeEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** Returns the data from the resizable plugin.
- */
- event?: any;
-}
+ /** Returns the data from the resizable plugin.
+ */
+ event?: any;
+ }
-export interface PopupShownEventArgs {
+ export interface PopupShownEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the selected text
- */
- text?: string;
+ /** returns the selected text
+ */
+ text?: string;
- /** returns the selected value
- */
- value?: string;
-}
+ /** returns the selected value
+ */
+ value?: string;
+ }
-export interface PopupResizeStartEventArgs {
+ export interface PopupResizeStartEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** Returns the data from the resizable plugin.
- */
- event?: any;
-}
+ /** Returns the data from the resizable plugin.
+ */
+ event?: any;
+ }
-export interface PopupResizeStopEventArgs {
+ export interface PopupResizeStopEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the DropDownList model
- */
- model?: any;
+ /** returns the DropDownList model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** Returns the data from the resizable plugin.
- */
- event?: any;
-}
+ /** Returns the data from the resizable plugin.
+ */
+ event?: any;
+ }
-export interface SearchEventArgs {
+ export interface SearchEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the data bound to the DropDownList.
- */
- items?: any;
+ /** Returns the data bound to the DropDownList.
+ */
+ items?: any;
- /** returns the DropDownList model
- */
- model?: any;
-
- /** Returns the selected item text.
- */
- selectedText?: string;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** Returns the search string typed in search box.
- */
- searchString?: string;
-}
-
-export interface SelectEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** Returns the selected item with checkbox checked or not.
- */
- isChecked?: boolean;
-
- /** Returns the selected item ID.
- */
- itemId?: string;
-
- /** returns the DropDownList model
- */
- model?: any;
-
- /** Returns the selected item text.
- */
- selectedText?: string;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** Returns the selected text.
- */
- text?: string;
-
- /** Returns the selected value.
- */
- value?: string;
-}
-
-export interface Fields {
-
- /** Used to group the items.
- */
- groupBy?: string;
-
- /** Defines the HTML attributes such as ID, class, and styles for the item.
- */
- htmlAttributes?: any;
-
- /** Defines the ID for the tag.
- */
- id?: string;
-
- /** Defines the image attributes such as height, width, styles, and so on.
- */
- imageAttributes?: string;
-
- /** Defines the imageURL for the image location.
- */
- imageUrl?: string;
-
- /** Defines the tag value to be selected initially.
- */
- selected?: boolean;
-
- /** Defines the sprite CSS for the image tag.
- */
- spriteCssClass?: string;
-
- /** Defines the table name for tag value or display text while rendering remote data.
- */
- tableName?: string;
-
- /** Defines the text content for the tag.
- */
- text?: string;
-
- /** Defines the tag value.
- */
- value?: string;
-}
-}
-enum FilterType {
-//filter the data wherever contains search key
-Contains,
-//filter the data based on search key present at start position
-StartsWith,
-}
-enum MultiSelectMode {
-// can select only single item in DropDownList
-None,
-//can select multiple items and it's separated by delimiterChar
-Delimiter,
-// can select multiple items and it's show's like visual box in textbox
-VisualMode,
-}
-enum VirtualScrollMode {
-// The data is loaded only to the corresponding page (display items). When scrolling some other position, it enables the load on demand with the DropDownList.
-Normal,
-//The data items are loaded from the remote when scroll handle reaches the end of the scrollbar like infinity scrolling.
-Continuous,
-}
-
-class Tooltip extends ej.Widget {
- static fn: Tooltip;
- constructor(element: JQuery | Element, options?: Tooltip.Model);
- static Locale: any;
- model: Tooltip.Model;
- defaults: Tooltip.Model;
-
- /** Destroys the Tooltip control.
- * @returns {void}
- */
- destroy(): void;
-
- /** Disables the Tooltip control.
- * @returns {void}
- */
- disable(): void;
-
- /** Enables the Tooltip control.
- * @returns {void}
- */
- enable(): void;
-
- /** Hide the Tooltip popup.
- * @param {string} optional Determines the type of effect that takes place when hiding the tooltip.
- * @param {Function} optional custom effect takes place when hiding the tooltip.
- * @returns {void}
- */
- hide(effect?: string, func?: any): void;
-
- /** Shows the Tooltip popup for the given target element with the specified effect.
- * @param {string} optional Determines the type of effect that takes place when showing the tooltip.
- * @param {Function} optional custom effect takes place when showing the tooltip.
- * @param {JQuery} optional Tooltip will be shown for the given element
- * @returns {void}
- */
- show(effect?: string, func?: any, target?: JQuery): void;
-}
-export namespace Tooltip {
-
-export interface Model {
-
- /** Tooltip control can be accessed through the keyboard shortcut keys.
- * @Default {true}
- */
- allowKeyboardNavigation?: boolean;
-
- /** Specifies the animation behavior in Tooltip. It contains the following sub properties.
- */
- animation?: Animation;
-
- /** Sets the position related to target element, window, mouse or (x,y) co-ordinates.
- * @Default {ej.Tooltip.Associate.Target}
- */
- associate?: ej.Tooltip.Associate|string;
-
- /** Specified the delay to hide Tooltip when closeMode is auto.
- * @Default {4000}
- */
- autoCloseTimeout?: number;
-
- /** Specifies the closing behavior of Tooltip popup.
- * @Default {ej.Tooltip.CloseMode.None}
- */
- closeMode?: ej.Tooltip.CloseMode|string;
-
- /** Sets the Tooltip in alternate position when collision occurs.
- * @Default {ej.Tooltip.Collision.FlipFit}
- */
- collision?: ej.Tooltip.Collision|string;
-
- /** Specified the selector for the container element.
- * @Default {body}
- */
- containment?: string;
-
- /** Specifies the text for Tooltip.
- * @Default {null}
- */
- content?: string;
-
- /** Sets the root CSS class for Tooltip for the customization.
- * @Default {null}
- */
- cssClass?: string;
-
- /** Enables or disables the Tooltip.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Sets the Tooltip direction from right to left.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Defines the height of the Tooltip popup.
- * @Default {auto}
- */
- height?: string|number;
-
- /** Enables the arrow in Tooltip.
- * @Default {true}
- */
- isBalloon?: boolean;
-
- /** defines various attributes of the Tooltip position
- */
- position?: Position;
-
- /** Enables or disables rounded corner.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Enables or disables shadow effect.
- * @Default {false}
- */
- showShadow?: boolean;
-
- /** Specified a selector for elements, within the container.
- * @Default {null}
- */
- target?: string;
-
- /** The title text to be displayed in the Tooltip header.
- * @Default {null}
- */
- title?: string;
-
- /** Specified the event action to show case the Tooltip.
- * @Default {ej.Tooltip.Trigger.Hover}
- */
- trigger?: ej.Tooltip.Trigger|string;
-
- /** Defines the width of the Tooltip popup.
- * @Default {auto}
- */
- width?: string|number;
+ /** returns the DropDownList model
+ */
+ model?: any;
+
+ /** Returns the selected item text.
+ */
+ selectedText?: string;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** Returns the search string typed in search box.
+ */
+ searchString?: string;
+ }
+
+ export interface SelectEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** Returns the selected item with checkbox checked or not.
+ */
+ isChecked?: boolean;
+
+ /** Returns the selected item ID.
+ */
+ itemId?: string;
+
+ /** returns the DropDownList model
+ */
+ model?: any;
+
+ /** Returns the selected item text.
+ */
+ selectedText?: string;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** Returns the selected text.
+ */
+ text?: string;
+
+ /** Returns the selected value.
+ */
+ value?: string;
+ }
+
+ export interface Fields {
+
+ /** Used to group the items.
+ */
+ groupBy?: string;
+
+ /** Defines the HTML attributes such as ID, class, and styles for the item.
+ */
+ htmlAttributes?: any;
+
+ /** Defines the ID for the tag.
+ */
+ id?: string;
+
+ /** Defines the image attributes such as height, width, styles, and so on.
+ */
+ imageAttributes?: string;
+
+ /** Defines the imageURL for the image location.
+ */
+ imageUrl?: string;
+
+ /** Defines the tag value to be selected initially.
+ */
+ selected?: boolean;
+
+ /** Defines the sprite CSS for the image tag.
+ */
+ spriteCssClass?: string;
+
+ /** Defines the table name for tag value or display text while rendering remote data.
+ */
+ tableName?: string;
+
+ /** Defines the text content for the tag.
+ */
+ text?: string;
+
+ /** Defines the tag value.
+ */
+ value?: string;
+ }
+ }
+ enum FilterType {
+ //filter the data wherever contains search key
+ Contains,
+ //filter the data based on search key present at start position
+ StartsWith,
+ }
+ enum MultiSelectMode {
+ // can select only single item in DropDownList
+ None,
+ //can select multiple items and it's separated by delimiterChar
+ Delimiter,
+ // can select multiple items and it's show's like visual box in textbox
+ VisualMode,
+ }
+ enum VirtualScrollMode {
+ // The data is loaded only to the corresponding page (display items). When scrolling some other position, it enables the load on demand with the DropDownList.
+ Normal,
+ //The data items are loaded from the remote when scroll handle reaches the end of the scrollbar like infinity scrolling.
+ Continuous,
+ }
+
+ class Tooltip extends ej.Widget {
+ static fn: Tooltip;
+ constructor(element: JQuery | Element, options?: Tooltip.Model);
+ static Locale: any;
+ model: Tooltip.Model;
+ defaults: Tooltip.Model;
+
+ /** Destroys the Tooltip control.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** Disables the Tooltip control.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Enables the Tooltip control.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Hide the Tooltip popup.
+ * @param {string} optional Determines the type of effect that takes place when hiding the tooltip.
+ * @param {Function} optional custom effect takes place when hiding the tooltip.
+ * @returns {void}
+ */
+ hide(effect?: string, func?: any): void;
+
+ /** Shows the Tooltip popup for the given target element with the specified effect.
+ * @param {string} optional Determines the type of effect that takes place when showing the tooltip.
+ * @param {Function} optional custom effect takes place when showing the tooltip.
+ * @param {JQuery} optional Tooltip will be shown for the given element
+ * @returns {void}
+ */
+ show(effect?: string, func?: any, target?: JQuery): void;
+ }
+ export namespace Tooltip {
+
+ export interface Model {
+
+ /** Tooltip control can be accessed through the keyboard shortcut keys.
+ * @Default {true}
+ */
+ allowKeyboardNavigation?: boolean;
+
+ /** Specifies the animation behavior in Tooltip. It contains the following sub properties.
+ */
+ animation?: Animation;
+
+ /** Sets the position related to target element, window, mouse or (x,y) co-ordinates.
+ * @Default {ej.Tooltip.Associate.Target}
+ */
+ associate?: ej.Tooltip.Associate | string;
+
+ /** Specified the delay to hide Tooltip when closeMode is auto.
+ * @Default {4000}
+ */
+ autoCloseTimeout?: number;
+
+ /** Specifies the closing behavior of Tooltip popup.
+ * @Default {ej.Tooltip.CloseMode.None}
+ */
+ closeMode?: ej.Tooltip.CloseMode | string;
+
+ /** Sets the Tooltip in alternate position when collision occurs.
+ * @Default {ej.Tooltip.Collision.FlipFit}
+ */
+ collision?: ej.Tooltip.Collision | string;
+
+ /** Specified the selector for the container element.
+ * @Default {body}
+ */
+ containment?: string;
+
+ /** Specifies the text for Tooltip.
+ * @Default {null}
+ */
+ content?: string;
+
+ /** Sets the root CSS class for Tooltip for the customization.
+ * @Default {null}
+ */
+ cssClass?: string;
+
+ /** Enables or disables the Tooltip.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Sets the Tooltip direction from right to left.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Defines the height of the Tooltip popup.
+ * @Default {auto}
+ */
+ height?: string | number;
+
+ /** Enables the arrow in Tooltip.
+ * @Default {true}
+ */
+ isBalloon?: boolean;
+
+ /** defines various attributes of the Tooltip position
+ */
+ position?: Position;
+
+ /** Enables or disables rounded corner.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Enables or disables shadow effect.
+ * @Default {false}
+ */
+ showShadow?: boolean;
+
+ /** Specified a selector for elements, within the container.
+ * @Default {null}
+ */
+ target?: string;
+
+ /** The title text to be displayed in the Tooltip header.
+ * @Default {null}
+ */
+ title?: string;
+
+ /** Specified the event action to show case the Tooltip.
+ * @Default {ej.Tooltip.Trigger.Hover}
+ */
+ trigger?: ej.Tooltip.Trigger | string;
+
+ /** Defines the width of the Tooltip popup.
+ * @Default {auto}
+ */
+ width?: string | number;
- /** This event is triggered before the Tooltip widget get closed. */
- beforeClose?(e: BeforeCloseEventArgs): void;
-
- /** This event is triggered before the Tooltip widget gets open. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ /** This event is triggered before the Tooltip widget get closed. */
+ beforeClose?(e: BeforeCloseEventArgs): void;
+
+ /** This event is triggered before the Tooltip widget gets open. */
+ beforeOpen?(e: BeforeOpenEventArgs): void;
- /** Fires on clicking to the target element. */
- click?(e: ClickEventArgs): void;
-
- /** This event is triggered after the Tooltip widget is closed. */
- close?(e: CloseEventArgs): void;
-
- /** This event is triggered after the Tooltip is created successfully. */
- create?(e: CreateEventArgs): void;
+ /** Fires on clicking to the target element. */
+ click?(e: ClickEventArgs): void;
+
+ /** This event is triggered after the Tooltip widget is closed. */
+ close?(e: CloseEventArgs): void;
+
+ /** This event is triggered after the Tooltip is created successfully. */
+ create?(e: CreateEventArgs): void;
- /** This event is triggered after the Tooltip widget is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
-
- /** This event is triggered while hovering the target element, when tooltip positioning relates to target element. */
- hover?(e: HoverEventArgs): void;
+ /** This event is triggered after the Tooltip widget is destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** This event is triggered while hovering the target element, when tooltip positioning relates to target element. */
+ hover?(e: HoverEventArgs): void;
- /** This event is triggered after the Tooltip is opened. */
- open?(e: OpenEventArgs): void;
+ /** This event is triggered after the Tooltip is opened. */
+ open?(e: OpenEventArgs): void;
- /** This event is triggered while hover the target element, when the tooltip positioning is relates to the mouse. */
- tracking?(e: TrackingEventArgs): void;
-}
+ /** This event is triggered while hover the target element, when the tooltip positioning is relates to the mouse. */
+ tracking?(e: TrackingEventArgs): void;
+ }
-export interface BeforeCloseEventArgs {
+ export interface BeforeCloseEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the tooltip model
- */
- model?: any;
+ /** returns the tooltip model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the Tooltip's content
- */
- content?: string;
-}
+ /** returns the Tooltip's content
+ */
+ content?: string;
+ }
-export interface BeforeOpenEventArgs {
+ export interface BeforeOpenEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the Tooltip model
- */
- model?: any;
+ /** returns the Tooltip model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the Tooltip's content
- */
- content?: string;
-}
+ /** returns the Tooltip's content
+ */
+ content?: string;
+ }
-export interface ClickEventArgs {
+ export interface ClickEventArgs {
- /** its value is set as true,if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** its value is set as true,if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the Tooltip model
- */
- model?: any;
+ /** returns the Tooltip model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the event object
- */
- event?: any;
-}
+ /** returns the event object
+ */
+ event?: any;
+ }
-export interface CloseEventArgs {
+ export interface CloseEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the Tooltip model
- */
- model?: any;
+ /** returns the Tooltip model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the Tooltip's content
- */
- content?: string;
-}
+ /** returns the Tooltip's content
+ */
+ content?: string;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the Tooltip model
- */
- model?: any;
+ /** returns the Tooltip model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** its value is set as true,if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** its value is set as true,if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the Tooltip model
- */
- model?: any;
+ /** returns the Tooltip model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface HoverEventArgs {
+ export interface HoverEventArgs {
- /** its value is set as true,if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** its value is set as true,if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the Tooltip model
- */
- model?: any;
+ /** returns the Tooltip model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the event object
- */
- event?: any;
-}
+ /** returns the event object
+ */
+ event?: any;
+ }
-export interface OpenEventArgs {
+ export interface OpenEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the Tooltip model
- */
- model?: any;
+ /** returns the Tooltip model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the Tooltip's content
- */
- content?: string;
-}
+ /** returns the Tooltip's content
+ */
+ content?: string;
+ }
-export interface TrackingEventArgs {
+ export interface TrackingEventArgs {
- /** its value is set as true,if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** its value is set as true,if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the Tooltip model
- */
- model?: any;
+ /** returns the Tooltip model
+ */
+ model?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the event object
- */
- event?: any;
-}
+ /** returns the event object
+ */
+ event?: any;
+ }
-export interface Animation {
+ export interface Animation {
- /** Determines the type of effect.
- * @Default {ej.Tooltip.Effect.None}
- */
- effect?: ej.Tooltip.effect|string;
+ /** Determines the type of effect.
+ * @Default {ej.Tooltip.Effect.None}
+ */
+ effect?: ej.Tooltip.effect | string;
- /** Sets the animation speed in milliseconds.
- * @Default {4000}
- */
- speed?: number;
-}
+ /** Sets the animation speed in milliseconds.
+ * @Default {4000}
+ */
+ speed?: number;
+ }
-export interface PositionTarget {
+ export interface PositionTarget {
- /** Sets the Tooltip position against target based on horizontal(x) value.
- * @Default {center}
- */
- horizontal?: string|number;
+ /** Sets the Tooltip position against target based on horizontal(x) value.
+ * @Default {center}
+ */
+ horizontal?: string | number;
- /** Sets the Tooltip position against target based on vertical(y) value.
- * @Default {top}
- */
- vertical?: string|number;
-}
+ /** Sets the Tooltip position against target based on vertical(y) value.
+ * @Default {top}
+ */
+ vertical?: string | number;
+ }
-export interface PositionStem {
+ export interface PositionStem {
- /** Sets the arrow position again popup based on horizontal(x) value
- * @Default {center}
- */
- horizontal?: string;
+ /** Sets the arrow position again popup based on horizontal(x) value
+ * @Default {center}
+ */
+ horizontal?: string;
- /** Sets the arrow position again popup based on vertical(y) value
- * @Default {bottom}
- */
- vertical?: string;
-}
+ /** Sets the arrow position again popup based on vertical(y) value
+ * @Default {bottom}
+ */
+ vertical?: string;
+ }
-export interface Position {
+ export interface Position {
- /** Sets the Tooltip position against target.
- */
- target?: PositionTarget;
+ /** Sets the Tooltip position against target.
+ */
+ target?: PositionTarget;
- /** Sets the arrow position again popup.
- */
- stem?: PositionStem;
-}
+ /** Sets the arrow position again popup.
+ */
+ stem?: PositionStem;
+ }
-enum effect {
+ enum effect {
- ///No animation takes place when showing/hiding the Tooltip
- None,
+ ///No animation takes place when showing/hiding the Tooltip
+ None,
- ///Sliding effect takes place when showing/hiding the Tooltip
- Slide,
+ ///Sliding effect takes place when showing/hiding the Tooltip
+ Slide,
- ///Fade the Tooltip in and out of visibility.
- Fade
-}
+ ///Fade the Tooltip in and out of visibility.
+ Fade
+ }
-enum Associate {
+ enum Associate {
- ///Sets the position related to target element.
- Target,
+ ///Sets the position related to target element.
+ Target,
- ///Sets the position related to mouse.
- MouseFollow,
+ ///Sets the position related to mouse.
+ MouseFollow,
- ///Sets the position related to mouse, first entry to the target element.
- MouseEnter,
+ ///Sets the position related to mouse, first entry to the target element.
+ MouseEnter,
- ///Sets the position related to (x,y) co-ordinates.
- Axis,
+ ///Sets the position related to (x,y) co-ordinates.
+ Axis,
- ///Sets the position related to browser window.
- Window
-}
+ ///Sets the position related to browser window.
+ Window
+ }
-enum CloseMode {
+ enum CloseMode {
- ///Enables close button in Tooltip.
- Sticky,
+ ///Enables close button in Tooltip.
+ Sticky,
- ///Sets the delay for Tooltip close
- Auto,
+ ///Sets the delay for Tooltip close
+ Auto,
- ///The Tooltip will be display normally.
- None
-}
+ ///The Tooltip will be display normally.
+ None
+ }
-enum Collision {
+ enum Collision {
- ///Flips the Tooltip to the opposite side of the target, if collision is occurs.
- Flip,
+ ///Flips the Tooltip to the opposite side of the target, if collision is occurs.
+ Flip,
- ///Shift the Tooltip popup away from the edge of the window(collision side) that means adjacent position.
- Fit,
+ ///Shift the Tooltip popup away from the edge of the window(collision side) that means adjacent position.
+ Fit,
- ///Ensure as much of the element is visible as possible to showcase.
- FlipFit,
+ ///Ensure as much of the element is visible as possible to showcase.
+ FlipFit,
- ///No collision detection is take place
- None
-}
+ ///No collision detection is take place
+ None
+ }
-enum Trigger {
+ enum Trigger {
- ///The Tooltip to be shown when the target element is clicked.
- Click,
+ ///The Tooltip to be shown when the target element is clicked.
+ Click,
- ///Enables the Tooltip when hover on the target element.
- Hover,
+ ///Enables the Tooltip when hover on the target element.
+ Hover,
- ///Enables the Tooltip when focus is set to target element.
- Focus
-}
+ ///Enables the Tooltip when focus is set to target element.
+ Focus
+ }
-}
+ }
-class Editor extends ej.Widget {
- static fn: Editor;
- constructor(element: JQuery | Element, options?: Editor.Model);
- static Locale: any;
- model: Editor.Model;
- defaults: Editor.Model;
+ class Editor extends ej.Widget {
+ static fn: Editor;
+ constructor(element: JQuery | Element, options?: Editor.Model);
+ static Locale: any;
+ model: Editor.Model;
+ defaults: Editor.Model;
- /** destroy the editor widgets all events are unbind automatically and bring the control to pre-init state.
- * @returns {void}
- */
- destroy(): void;
+ /** destroy the editor widgets all events are unbind automatically and bring the control to pre-init state.
+ * @returns {void}
+ */
+ destroy(): void;
- /** To disable the corresponding Editors
- * @returns {void}
- */
- disable(): void;
+ /** To disable the corresponding Editors
+ * @returns {void}
+ */
+ disable(): void;
- /** To enable the corresponding Editors
- * @returns {void}
- */
- enable(): void;
+ /** To enable the corresponding Editors
+ * @returns {void}
+ */
+ enable(): void;
- /** To get value from corresponding Editors
- * @returns {number}
- */
- getValue(): number;
-}
+ /** To get value from corresponding Editors
+ * @returns {number}
+ */
+ getValue(): number;
+ }
- class NumericTextbox extends Editor {
-}
+ class NumericTextbox extends Editor {
+ }
- class CurrencyTextbox extends Editor {
-}
+ class CurrencyTextbox extends Editor {
+ }
- class PercentageTextbox extends Editor {
-}
-export namespace Editor {
+ class PercentageTextbox extends Editor {
+ }
+ export namespace Editor {
-export interface Model {
+ export interface Model {
- /** Specifies the currency symbol of currency textbox, used when the user wants to overwrite the currency symbol commonly instead of the current culture symbol.
- * @Default {Based on the culture}
- */
- currencySymbol?: string;
+ /** Specifies the currency symbol of currency textbox, used when the user wants to overwrite the currency symbol commonly instead of the current culture symbol.
+ * @Default {Based on the culture}
+ */
+ currencySymbol?: string;
- /** Sets the root CSS class for Editors which allow us to customize the appearance.
- */
- cssClass?: string;
+ /** Sets the root CSS class for Editors which allow us to customize the appearance.
+ */
+ cssClass?: string;
- /** Specifies the number of digits that should be allowed after the decimal point.
- * @Default {0}
- */
- decimalPlaces?: number;
-
- /** Specifies the editor control state.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Specify the enablePersistence to editor to save current editor control value to browser cookies for state maintenance.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Specifies the Right to Left Direction to editor.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** When enableStrictMode true it allows the value outside of the range also but it highlights the textbox with error class,otherwise it internally changed to the correct value.
- * @Default {false}
- */
- enableStrictMode?: boolean;
-
- /** Specifies the number of digits in each group to the editor.
- * @Default {Based on the culture.}
- */
- groupSize?: string;
-
- /** It provides the options to get the customized character to separate the digits. If not set, the separator defined by the current culture.
- * @Default {Based on the culture}
- */
- groupSeparator?: string;
-
- /** Specifies the height of the editor.
- * @Default {30}
- */
- height?: string;
-
- /** It allows to define the characteristics of the Editors control. It will helps to extend the capability of an HTML element.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** The Editor value increment or decrement based an incrementStep value.
- * @Default {1}
- */
- incrementStep?: number;
-
- /** Defines the localization culture for editor.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Specifies the maximum value of the editor.
- * @Default {Number.MAX_VALUE}
- */
- maxValue?: number;
-
- /** Specifies the minimum value of the editor.
- * @Default {-(Number.MAX_VALUE) and 0 for Currency Textbox.}
- */
- minValue?: number;
-
- /** Specifies the name of the editor.
- * @Default {Sets id as name if it is null.}
- */
- name?: string;
-
- /** Specifies the pattern for formatting positive values in editor.We have maintained some standard to define the negative pattern.
- * you have to specify 'n' to place the digit in your pattern.ejTextbox allows you to define a currency or percent symbol where you want to place it.
- * @Default {Based on the culture}
- */
- negativePattern?: string;
-
- /** Specifies the pattern for formatting positive values in editor.We have maintained some standard to define the positive pattern.
- * you have to specify 'n' to place the digit in your pattern.ejTextbox allows you to define a currency or percent symbol where you want to place it.
- * @Default {Based on the culture}
- */
- positivePattern?: string;
-
- /** Toggles the readonly state of the editor. When the Editor is readonly it doesn't allow user interactions.
- * @Default {false}
- */
- readOnly?: boolean;
-
- /** Specifies to Change the sharped edges into rounded corner for the Editor.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Specifies whether the up and down spin buttons should be displayed in editor.
- * @Default {true}
- */
- showSpinButton?: boolean;
-
- /** Enables decimal separator position validation on type .
- * @Default {false}
- */
- validateOnType?: boolean;
-
- /** Set the jQuery validation error message in editor.
- * @Default {null}
- */
- validationMessage?: any;
-
- /** Set the jQuery validation rules to the editor.
- * @Default {null}
- */
- validationRules?: any;
-
- /** Specifies the value of the editor.
- * @Default {null}
- */
- value?: number|string;
-
- /** Specifies the watermark text to editor.
- * @Default {Based on the culture.}
- */
- watermarkText?: string;
-
- /** Specifies the width of the editor.
- * @Default {143}
- */
- width?: string;
-
- /** Fires after Editor control value is changed. */
- change?(e: ChangeEventArgs): void;
-
- /** Fires after Editor control is created. */
- create?(e: CreateEventArgs): void;
-
- /** Fires when the Editor is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
-
- /** Fires after Editor control is focused. */
- focusIn?(e: FocusInEventArgs): void;
-
- /** Fires after Editor control is loss the focus. */
- focusOut?(e: FocusOutEventArgs): void;
-}
-
-export interface ChangeEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the corresponding editor model.
- */
- model?: ej.Editor.Model;
-
- /** returns the name of the event.
- */
- type?: string;
-
- /** returns the corresponding editor control value.
- */
- value?: number;
-
- /** returns true when the value changed by user interaction otherwise returns false
- */
- isInteraction?: boolean;
-}
-
-export interface CreateEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the editor model
- */
- model?: ej.Editor.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface DestroyEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the editor model
- */
- model?: ej.Editor.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface FocusInEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the corresponding editor model.
- */
- model?: ej.Editor.Model;
-
- /** returns the name of the event.
- */
- type?: string;
-
- /** returns the corresponding editor control value.
- */
- value?: number;
-}
-
-export interface FocusOutEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the corresponding editor model.
- */
- model?: ej.Editor.Model;
-
- /** returns the name of the event.
- */
- type?: string;
-
- /** returns the corresponding editor control value.
- */
- value?: number;
-}
-}
-
-class ListView extends ej.Widget {
- static fn: ListView;
- constructor(element: JQuery | Element, options?: ListView.Model);
- static Locale: any;
- model: ListView.Model;
- defaults: ListView.Model;
-
- /** To add item in the given index. If you have enabled grouping in ListView then you need to pass the corresponding group list title to add item in it.
- * @param {any} Specifies the item to be added in ListView
- * @param {number} Specifies the index where item to be added
- * @param {string} optionalThis is an optional parameter. You must pass the group list title here if grouping is enabled in the ListView
- * @returns {void}
- */
- addItem(item: any, index: number, groupid: string): void;
-
- /** To check all the items.
- * @returns {void}
- */
- checkAllItem(): void;
-
- /** To check item in the given index.
- * @param {number} Specifies the index of the item to be checked
- * @returns {void}
- */
- checkItem(index: number): void;
-
- /** To clear all the list item in the control before updating with new datasource.
- * @returns {void}
- */
- clear(): void;
-
- /** To make the item in the given index to be default state.
- * @param {number} Specifies the index to make the item to be in default state.
- * @returns {void}
- */
- deActive(index: number): void;
-
- /** To disable item in the given index.
- * @param {number} Specifies the index value to be disabled.
- * @returns {void}
- */
- disableItem(index: number): void;
-
- /** To enable item in the given index.
- * @param {number} Specifies the index value to be enabled.
- * @returns {void}
- */
- enableItem(index: number): void;
-
- /** To get the active item.
- * @returns {HTMLElement}
- */
- getActiveItem(): HTMLElement;
-
- /** To get the text of the active item.
- * @returns {string}
- */
- getActiveItemText(): string;
-
- /** To get all the checked items.
- * @returns {Array}
- */
- getCheckedItems(): any[];
-
- /** To get the text of all the checked items.
- * @returns {Array}
- */
- getCheckedItemsText(): any[];
-
- /** To get the total item count.
- * @returns {number}
- */
- getItemsCount(): number;
-
- /** To get the text of the item in the given index.
- * @param {string|number} Specifies the index value to get the text value.
- * @returns {string}
- */
- getItemText(index: string|number): string;
-
- /** To check whether the item in the given index has child item.
- * @param {number} Specifies the index value to check the item has child or not.
- * @returns {boolean}
- */
- hasChild(index: number): boolean;
-
- /** To hide the list.
- * @returns {void}
- */
- hide(): void;
-
- /** To hide item in the given index.
- * @param {number} Specifies the index value to hide the item.
- * @returns {void}
- */
- hideItem(index: number): void;
-
- /** To check whether item in the given index is checked.
- * @returns {boolean}
- */
- isChecked(): boolean;
-
- /** To load the AJAX content while selecting the item.
- * @param {string} Specifies the item to load the AJAX content.
- * @returns {void}
- */
- loadAjaxContent(item: string): void;
-
- /** To remove the check mark either for specific item in the given index or for all items.
- * @param {number} Specifies the index value to remove the checkbox.
- * @returns {void}
- */
- removeCheckMark(index: number): void;
-
- /** To remove item in the given index.
- * @param {number} Specifies the index value to remove the item.
- * @returns {void}
- */
- removeItem(index: number): void;
-
- /** To select item in the given index.
- * @param {number} Specifies the index value to select the item.
- * @returns {void}
- */
- selectItem(index: number): void;
-
- /** To make the item in the given index to be active state.
- * @param {number} Specifies the index value to make the item in active state.
- * @returns {void}
- */
- setActive(index: number): void;
-
- /** To show the list.
- * @returns {void}
- */
- show(): void;
-
- /** To show item in the given index.
- * @param {number} Specifies the index value to show the hided item.
- * @returns {void}
- */
- showItem(index: number): void;
-
- /** To uncheck all the items.
- * @returns {void}
- */
- unCheckAllItem(): void;
-
- /** To uncheck item in the given index.
- * @param {number} Specifies the index value to uncheck the item.
- * @returns {void}
- */
- unCheckItem(index: number): void;
-}
-export namespace ListView {
-
-export interface Model {
-
- /** Specifies the ajaxSettings option to load the items to the ListView control.
- * @Default {null}
- */
- ajaxSettings?: AjaxSettings;
-
- /** Set the index values to be selected on initial loading. This works only when enableCheckMark is set true.
- * @Default {[]}
- */
- checkedIndices?: any[];
-
- /** Sets the root class for ListView theme. This cssClass API helps to use custom skinning option for ListView control. By defining the root class using this API,
- * we need to include this root class in CSS.
- */
- cssClass?: string;
-
- /** Contains the list of data for generating the ListView items.
- * @Default {[]}
- */
- dataSource?: any[];
-
- /** Specifies whether to load AJAX content while selecting item.
- * @Default {false}
- */
- enableAjax?: boolean;
-
- /** Specifies whether to enable caching the content.
- * @Default {false}
- */
- enableCache?: boolean;
-
- /** Specifies whether to enable check mark for the item.
- * @Default {false}
- */
- enableCheckMark?: boolean;
-
- /** Specifies whether to enable the filtering feature to filter the item.
- * @Default {false}
- */
- enableFiltering?: boolean;
-
- /** Specifies whether to group the list item.
- * @Default {false}
- */
- enableGroupList?: boolean;
-
- /** Specifies to maintain the current model value to browser cookies for state maintenance. While refresh the page, the model value will get apply to the control from browser cookies.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Specifies the field settings to map the datasource.
- */
- fieldSettings?: any;
-
- /** Contains the array of items to be added in ListView.
- * @Default {[]}
- */
- items?: any[];
-
- /** Specifies the text of the back button in the header.
- * @Default {null}
- */
- headerBackButtonText?: string;
-
- /** Specifies the title of the header.
- * @Default {Title}
- */
- headerTitle?: string;
-
- /** Specifies the height.
- * @Default {null}
- */
- height?: string|number;
-
- /** Set the localization culture for ListView Widget.
- */
- locale?: string;
-
- /** Specifies whether to retain the selection of the item.
- * @Default {false}
- */
- persistSelection?: boolean;
-
- /** Specifies whether to prevent the selection of the item.
- * @Default {false}
- */
- preventSelection?: boolean;
-
- /** Specifies the query to execute with the datasource.
- * @Default {null}
- */
- query?: any;
-
- /** Specifies whether need to render the control with the template contents.
- * @Default {false}
- */
- renderTemplate?: boolean;
-
- /** Specifies the index of item which need to be in selected state initially while loading.
- * @Default {0}
- */
- selectedItemIndex?: number;
-
- /** Specifies whether to show the header.
- * @Default {true}
- */
- showHeader?: boolean;
-
- /** Specifies whether to show the back button header.
- * @Default {false}
- */
- showHeaderBackButton?: boolean;
-
- /** Specifies ID of the element contains template contents.
- * @Default {null}
- */
- templateId?: string;
-
- /** Specifies the width.
- * @Default {null}
- */
- width?: string|number;
-
- /** Event triggers before the AJAX request happens. */
- ajaxBeforeLoad?(e: AjaxBeforeLoadEventArgs): void;
-
- /** Event triggers after the AJAX content loaded completely. */
- ajaxComplete?(e: AjaxCompleteEventArgs): void;
-
- /** Event triggers when the AJAX request failed. */
- ajaxError?(e: AjaxErrorEventArgs): void;
-
- /** Event triggers after the AJAX content loaded successfully. */
- ajaxSuccess?(e: AjaxSuccessEventArgs): void;
+ /** Specifies the number of digits that should be allowed after the decimal point.
+ * @Default {0}
+ */
+ decimalPlaces?: number;
+
+ /** Specifies the editor control state.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Specify the enablePersistence to editor to save current editor control value to browser cookies for state maintenance.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Specifies the Right to Left Direction to editor.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** When enableStrictMode true it allows the value outside of the range also but it highlights the textbox with error class,otherwise it internally changed to the correct value.
+ * @Default {false}
+ */
+ enableStrictMode?: boolean;
+
+ /** Specifies the number of digits in each group to the editor.
+ * @Default {Based on the culture.}
+ */
+ groupSize?: string;
+
+ /** It provides the options to get the customized character to separate the digits. If not set, the separator defined by the current culture.
+ * @Default {Based on the culture}
+ */
+ groupSeparator?: string;
+
+ /** Specifies the height of the editor.
+ * @Default {30}
+ */
+ height?: string;
+
+ /** It allows to define the characteristics of the Editors control. It will helps to extend the capability of an HTML element.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** The Editor value increment or decrement based an incrementStep value.
+ * @Default {1}
+ */
+ incrementStep?: number;
+
+ /** Defines the localization culture for editor.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Specifies the maximum value of the editor.
+ * @Default {Number.MAX_VALUE}
+ */
+ maxValue?: number;
+
+ /** Specifies the minimum value of the editor.
+ * @Default {-(Number.MAX_VALUE) and 0 for Currency Textbox.}
+ */
+ minValue?: number;
+
+ /** Specifies the name of the editor.
+ * @Default {Sets id as name if it is null.}
+ */
+ name?: string;
+
+ /** Specifies the pattern for formatting positive values in editor.We have maintained some standard to define the negative pattern.
+ * you have to specify 'n' to place the digit in your pattern.ejTextbox allows you to define a currency or percent symbol where you want to place it.
+ * @Default {Based on the culture}
+ */
+ negativePattern?: string;
+
+ /** Specifies the pattern for formatting positive values in editor.We have maintained some standard to define the positive pattern.
+ * you have to specify 'n' to place the digit in your pattern.ejTextbox allows you to define a currency or percent symbol where you want to place it.
+ * @Default {Based on the culture}
+ */
+ positivePattern?: string;
+
+ /** Toggles the readonly state of the editor. When the Editor is readonly it doesn't allow user interactions.
+ * @Default {false}
+ */
+ readOnly?: boolean;
+
+ /** Specifies to Change the sharped edges into rounded corner for the Editor.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Specifies whether the up and down spin buttons should be displayed in editor.
+ * @Default {true}
+ */
+ showSpinButton?: boolean;
+
+ /** Enables decimal separator position validation on type .
+ * @Default {false}
+ */
+ validateOnType?: boolean;
+
+ /** Set the jQuery validation error message in editor.
+ * @Default {null}
+ */
+ validationMessage?: any;
+
+ /** Set the jQuery validation rules to the editor.
+ * @Default {null}
+ */
+ validationRules?: any;
+
+ /** Specifies the value of the editor.
+ * @Default {null}
+ */
+ value?: number | string;
+
+ /** Specifies the watermark text to editor.
+ * @Default {Based on the culture.}
+ */
+ watermarkText?: string;
+
+ /** Specifies the width of the editor.
+ * @Default {143}
+ */
+ width?: string;
+
+ /** Fires after Editor control value is changed. */
+ change?(e: ChangeEventArgs): void;
+
+ /** Fires after Editor control is created. */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when the Editor is destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Fires after Editor control is focused. */
+ focusIn?(e: FocusInEventArgs): void;
+
+ /** Fires after Editor control is loss the focus. */
+ focusOut?(e: FocusOutEventArgs): void;
+ }
+
+ export interface ChangeEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the corresponding editor model.
+ */
+ model?: ej.Editor.Model;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+
+ /** returns the corresponding editor control value.
+ */
+ value?: number;
+
+ /** returns true when the value changed by user interaction otherwise returns false
+ */
+ isInteraction?: boolean;
+ }
+
+ export interface CreateEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the editor model
+ */
+ model?: ej.Editor.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the editor model
+ */
+ model?: ej.Editor.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface FocusInEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the corresponding editor model.
+ */
+ model?: ej.Editor.Model;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+
+ /** returns the corresponding editor control value.
+ */
+ value?: number;
+ }
+
+ export interface FocusOutEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the corresponding editor model.
+ */
+ model?: ej.Editor.Model;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+
+ /** returns the corresponding editor control value.
+ */
+ value?: number;
+ }
+ }
+
+ class ListView extends ej.Widget {
+ static fn: ListView;
+ constructor(element: JQuery | Element, options?: ListView.Model);
+ static Locale: any;
+ model: ListView.Model;
+ defaults: ListView.Model;
+
+ /** To add item in the given index. If you have enabled grouping in ListView then you need to pass the corresponding group list title to add item in it.
+ * @param {any} Specifies the item to be added in ListView
+ * @param {number} Specifies the index where item to be added
+ * @param {string} optionalThis is an optional parameter. You must pass the group list title here if grouping is enabled in the ListView
+ * @returns {void}
+ */
+ addItem(item: any, index: number, groupid: string): void;
+
+ /** To check all the items.
+ * @returns {void}
+ */
+ checkAllItem(): void;
+
+ /** To check item in the given index.
+ * @param {number} Specifies the index of the item to be checked
+ * @returns {void}
+ */
+ checkItem(index: number): void;
+
+ /** To clear all the list item in the control before updating with new datasource.
+ * @returns {void}
+ */
+ clear(): void;
+
+ /** To make the item in the given index to be default state.
+ * @param {number} Specifies the index to make the item to be in default state.
+ * @returns {void}
+ */
+ deActive(index: number): void;
+
+ /** To disable item in the given index.
+ * @param {number} Specifies the index value to be disabled.
+ * @returns {void}
+ */
+ disableItem(index: number): void;
+
+ /** To enable item in the given index.
+ * @param {number} Specifies the index value to be enabled.
+ * @returns {void}
+ */
+ enableItem(index: number): void;
+
+ /** To get the active item.
+ * @returns {HTMLElement}
+ */
+ getActiveItem(): HTMLElement;
+
+ /** To get the text of the active item.
+ * @returns {string}
+ */
+ getActiveItemText(): string;
+
+ /** To get all the checked items.
+ * @returns {Array}
+ */
+ getCheckedItems(): any[];
+
+ /** To get the text of all the checked items.
+ * @returns {Array}
+ */
+ getCheckedItemsText(): any[];
+
+ /** To get the total item count.
+ * @returns {number}
+ */
+ getItemsCount(): number;
+
+ /** To get the text of the item in the given index.
+ * @param {string|number} Specifies the index value to get the text value.
+ * @returns {string}
+ */
+ getItemText(index: string | number): string;
+
+ /** To check whether the item in the given index has child item.
+ * @param {number} Specifies the index value to check the item has child or not.
+ * @returns {boolean}
+ */
+ hasChild(index: number): boolean;
+
+ /** To hide the list.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** To hide item in the given index.
+ * @param {number} Specifies the index value to hide the item.
+ * @returns {void}
+ */
+ hideItem(index: number): void;
+
+ /** To check whether item in the given index is checked.
+ * @returns {boolean}
+ */
+ isChecked(): boolean;
+
+ /** To load the AJAX content while selecting the item.
+ * @param {string} Specifies the item to load the AJAX content.
+ * @returns {void}
+ */
+ loadAjaxContent(item: string): void;
+
+ /** To remove the check mark either for specific item in the given index or for all items.
+ * @param {number} Specifies the index value to remove the checkbox.
+ * @returns {void}
+ */
+ removeCheckMark(index: number): void;
+
+ /** To remove item in the given index.
+ * @param {number} Specifies the index value to remove the item.
+ * @returns {void}
+ */
+ removeItem(index: number): void;
+
+ /** To select item in the given index.
+ * @param {number} Specifies the index value to select the item.
+ * @returns {void}
+ */
+ selectItem(index: number): void;
+
+ /** To make the item in the given index to be active state.
+ * @param {number} Specifies the index value to make the item in active state.
+ * @returns {void}
+ */
+ setActive(index: number): void;
+
+ /** To show the list.
+ * @returns {void}
+ */
+ show(): void;
+
+ /** To show item in the given index.
+ * @param {number} Specifies the index value to show the hided item.
+ * @returns {void}
+ */
+ showItem(index: number): void;
+
+ /** To uncheck all the items.
+ * @returns {void}
+ */
+ unCheckAllItem(): void;
+
+ /** To uncheck item in the given index.
+ * @param {number} Specifies the index value to uncheck the item.
+ * @returns {void}
+ */
+ unCheckItem(index: number): void;
+ }
+ export namespace ListView {
+
+ export interface Model {
+
+ /** Specifies the ajaxSettings option to load the items to the ListView control.
+ * @Default {null}
+ */
+ ajaxSettings?: AjaxSettings;
+
+ /** Set the index values to be selected on initial loading. This works only when enableCheckMark is set true.
+ * @Default {[]}
+ */
+ checkedIndices?: any[];
+
+ /** Sets the root class for ListView theme. This cssClass API helps to use custom skinning option for ListView control. By defining the root class using this API,
+ * we need to include this root class in CSS.
+ */
+ cssClass?: string;
+
+ /** Contains the list of data for generating the ListView items.
+ * @Default {[]}
+ */
+ dataSource?: any[];
+
+ /** Specifies whether to load AJAX content while selecting item.
+ * @Default {false}
+ */
+ enableAjax?: boolean;
+
+ /** Specifies whether to enable caching the content.
+ * @Default {false}
+ */
+ enableCache?: boolean;
+
+ /** Specifies whether to enable check mark for the item.
+ * @Default {false}
+ */
+ enableCheckMark?: boolean;
+
+ /** Specifies whether to enable the filtering feature to filter the item.
+ * @Default {false}
+ */
+ enableFiltering?: boolean;
+
+ /** Specifies whether to group the list item.
+ * @Default {false}
+ */
+ enableGroupList?: boolean;
+
+ /** Specifies to maintain the current model value to browser cookies for state maintenance. While refresh the page, the model value will get apply to the control from browser cookies.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Specifies the field settings to map the datasource.
+ */
+ fieldSettings?: any;
+
+ /** Contains the array of items to be added in ListView.
+ * @Default {[]}
+ */
+ items?: any[];
+
+ /** Specifies the text of the back button in the header.
+ * @Default {null}
+ */
+ headerBackButtonText?: string;
+
+ /** Specifies the title of the header.
+ * @Default {Title}
+ */
+ headerTitle?: string;
+
+ /** Specifies the height.
+ * @Default {null}
+ */
+ height?: string | number;
+
+ /** Set the localization culture for ListView Widget.
+ */
+ locale?: string;
+
+ /** Specifies whether to retain the selection of the item.
+ * @Default {false}
+ */
+ persistSelection?: boolean;
+
+ /** Specifies whether to prevent the selection of the item.
+ * @Default {false}
+ */
+ preventSelection?: boolean;
+
+ /** Specifies the query to execute with the datasource.
+ * @Default {null}
+ */
+ query?: any;
+
+ /** Specifies whether need to render the control with the template contents.
+ * @Default {false}
+ */
+ renderTemplate?: boolean;
+
+ /** Specifies the index of item which need to be in selected state initially while loading.
+ * @Default {0}
+ */
+ selectedItemIndex?: number;
+
+ /** Specifies whether to show the header.
+ * @Default {true}
+ */
+ showHeader?: boolean;
+
+ /** Specifies whether to show the back button header.
+ * @Default {false}
+ */
+ showHeaderBackButton?: boolean;
+
+ /** Specifies ID of the element contains template contents.
+ * @Default {null}
+ */
+ templateId?: string;
+
+ /** Specifies the width.
+ * @Default {null}
+ */
+ width?: string | number;
+
+ /** Event triggers before the AJAX request happens. */
+ ajaxBeforeLoad?(e: AjaxBeforeLoadEventArgs): void;
+
+ /** Event triggers after the AJAX content loaded completely. */
+ ajaxComplete?(e: AjaxCompleteEventArgs): void;
+
+ /** Event triggers when the AJAX request failed. */
+ ajaxError?(e: AjaxErrorEventArgs): void;
+
+ /** Event triggers after the AJAX content loaded successfully. */
+ ajaxSuccess?(e: AjaxSuccessEventArgs): void;
- /** Event triggers before the items loaded. */
- load?(e: LoadEventArgs): void;
-
- /** Event triggers after the items loaded. */
- loadComplete?(e: LoadCompleteEventArgs): void;
-
- /** Event triggers when mouse down happens on the item. */
- mouseDown?(e: MouseDownEventArgs): void;
+ /** Event triggers before the items loaded. */
+ load?(e: LoadEventArgs): void;
+
+ /** Event triggers after the items loaded. */
+ loadComplete?(e: LoadCompleteEventArgs): void;
+
+ /** Event triggers when mouse down happens on the item. */
+ mouseDown?(e: MouseDownEventArgs): void;
- /** Event triggers when mouse up happens on the item. */
- mouseUp?(e: MouseUpEventArgs): void;
-}
+ /** Event triggers when mouse up happens on the item. */
+ mouseUp?(e: MouseUpEventArgs): void;
+ }
-export interface AjaxBeforeLoadEventArgs {
+ export interface AjaxBeforeLoadEventArgs {
- /** returns true if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns true if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the model value of the control.
- */
- model?: ej.ListView.Model;
+ /** returns the model value of the control.
+ */
+ model?: ej.ListView.Model;
- /** returns the AJAX settings.
- */
- ajaxData?: any;
-}
+ /** returns the AJAX settings.
+ */
+ ajaxData?: any;
+ }
-export interface AjaxCompleteEventArgs {
+ export interface AjaxCompleteEventArgs {
- /** returns true if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns true if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the model value of the control.
- */
- model?: ej.ListView.Model;
-}
+ /** returns the model value of the control.
+ */
+ model?: ej.ListView.Model;
+ }
-export interface AjaxErrorEventArgs {
+ export interface AjaxErrorEventArgs {
- /** returns true if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns true if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the model value of the control.
- */
- model?: ej.ListView.Model;
+ /** returns the model value of the control.
+ */
+ model?: ej.ListView.Model;
- /** returns the error thrown in the AJAX post.
- */
- errorThrown?: any;
+ /** returns the error thrown in the AJAX post.
+ */
+ errorThrown?: any;
- /** returns the status.
- */
- textStatus?: any;
+ /** returns the status.
+ */
+ textStatus?: any;
- /** returns the current list item.
- */
- item?: any;
+ /** returns the current list item.
+ */
+ item?: any;
- /** returns the current item text.
- */
- text?: string;
+ /** returns the current item text.
+ */
+ text?: string;
- /** returns the current item index.
- */
- index?: number;
-}
+ /** returns the current item index.
+ */
+ index?: number;
+ }
-export interface AjaxSuccessEventArgs {
+ export interface AjaxSuccessEventArgs {
- /** returns true if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns true if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the model value of the control.
- */
- model?: ej.ListView.Model;
+ /** returns the model value of the control.
+ */
+ model?: ej.ListView.Model;
- /** returns the AJAX current content.
- */
- content?: string;
+ /** returns the AJAX current content.
+ */
+ content?: string;
- /** returns the current list item.
- */
- item?: any;
+ /** returns the current list item.
+ */
+ item?: any;
- /** returns the current item text.
- */
- text?: string;
+ /** returns the current item text.
+ */
+ text?: string;
- /** returns the current item index.
- */
- index?: number;
+ /** returns the current item index.
+ */
+ index?: number;
- /** returns the current URL of the AJAX post.
- */
- URL?: string;
-}
+ /** returns the current URL of the AJAX post.
+ */
+ URL?: string;
+ }
-export interface LoadEventArgs {
+ export interface LoadEventArgs {
- /** returns true if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns true if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the model value of the control.
- */
- model?: ej.ListView.Model;
-}
+ /** returns the model value of the control.
+ */
+ model?: ej.ListView.Model;
+ }
-export interface LoadCompleteEventArgs {
+ export interface LoadCompleteEventArgs {
- /** returns true if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns true if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the model value of the control.
- */
- model?: ej.ListView.Model;
-}
+ /** returns the model value of the control.
+ */
+ model?: ej.ListView.Model;
+ }
-export interface MouseDownEventArgs {
+ export interface MouseDownEventArgs {
- /** returns true if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns true if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the model value of the control.
- */
- model?: ej.ListView.Model;
+ /** returns the model value of the control.
+ */
+ model?: ej.ListView.Model;
- /** If the child element exist return true; otherwise, false.
- */
- hasChild?: boolean;
+ /** If the child element exist return true; otherwise, false.
+ */
+ hasChild?: boolean;
- /** returns the current list item.
- */
- item?: string;
+ /** returns the current list item.
+ */
+ item?: string;
- /** returns the current text of item.
- */
- text?: string;
+ /** returns the current text of item.
+ */
+ text?: string;
- /** returns the current Index of the item.
- */
- index?: number;
+ /** returns the current Index of the item.
+ */
+ index?: number;
- /** If checked return true; otherwise, false.
- */
- isChecked?: boolean;
+ /** If checked return true; otherwise, false.
+ */
+ isChecked?: boolean;
- /** returns the list of checked items.
- */
- checkedItems?: number;
-
- /** returns the current checked item text.
- */
- checkedItemsText?: string;
-}
-
-export interface MouseUpEventArgs {
-
- /** returns true if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the name of the event.
- */
- type?: string;
-
- /** returns the model value of the control.
- */
- model?: ej.ListView.Model;
-
- /** If the child element exist return true; otherwise, false.
- */
- hasChild?: boolean;
-
- /** returns the current list item.
- */
- item?: string;
-
- /** returns the current text of item.
- */
- text?: string;
-
- /** returns the current Index of the item.
- */
- index?: number;
-
- /** If checked return true; otherwise, false.
- */
- isChecked?: boolean;
-
- /** returns the list of checked items.
- */
- checkedItems?: number;
-
- /** returns the current checked item text.
- */
- checkedItemsText?: string;
-}
-
-export interface AjaxSettings {
-
- /** It specifies, whether to enable or disable asynchronous request.
- */
- async?: boolean;
-
- /** It specifies the page will be cached in the web browser.
- */
- cache?: boolean;
-
- /** It specifies the type of data is send in the query string.
- */
- contentType?: string;
-
- /** It specifies the data as an object, will be passed in the query string.
- */
- data?: any;
-
- /** It specifies the type of data that you're expecting back from the response.
- */
- dataType?: string;
-
- /** It specifies the HTTP request type.
- */
- type?: string;
-}
-}
-
-class MaskEdit extends ej.Widget {
- static fn: MaskEdit;
- constructor(element: JQuery | Element, options?: MaskEdit.Model);
- static Locale: any;
- model: MaskEdit.Model;
- defaults: MaskEdit.Model;
-
- /** To clear the text in mask edit textbox control.
- * @returns {void}
- */
- clear(): void;
-
- /** To disable the mask edit textbox control.
- * @returns {void}
- */
- disable(): void;
-
- /** To enable the mask edit textbox control.
- * @returns {void}
- */
- enable(): void;
-
- /** To obtained the pure value of the text value, removes all the symbols in mask edit textbox control.
- * @returns {string}
- */
- get_StrippedValue(): string;
-
- /** To obtained the textbox value as such that, Just replace all '_' to ' '(space) in mask edit textbox control.
- * @returns {string}
- */
- get_UnstrippedValue(): string;
-}
-export namespace MaskEdit {
-
-export interface Model {
-
- /** Specify the cssClass to achieve custom theme.
- * @Default {null}
- */
- cssClass?: string;
-
- /** Specify the custom character allowed to entered in mask edit textbox control.
- * @Default {null}
- */
- customCharacter?: string;
-
- /** Specify the state of the mask edit textbox control.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Specify the enablePersistence to mask edit textbox to save current model value to browser cookies for state maintains.
- */
- enablePersistence?: boolean;
-
- /** Specifies the height for the mask edit textbox control.
- * @Default {28 px}
- */
- height?: string;
-
- /** Specifies whether hide the prompt characters with spaces on blur. Prompt chars will be shown again on focus the textbox.
- * @Default {false}
- */
- hidePromptOnLeave?: boolean;
-
- /** Specifies the list of HTML attributes to be added to mask edit textbox.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Specify the inputMode for mask edit textbox control. See InputMode
- * @Default {ej.InputMode.Text}
- */
- inputMode?: ej.InputMode|string;
-
- /** Specifies the input mask.
- * @Default {null}
- */
- maskFormat?: string;
-
- /** Specifies the name attribute value for the mask edit textbox.
- * @Default {null}
- */
- name?: string;
-
- /** Toggles the readonly state of the mask edit textbox. When the mask edit textbox is readonly, it doesn't allow your input.
- * @Default {false}
- */
- readOnly?: boolean;
-
- /** Specifies whether the error will show until correct value entered in the mask edit textbox control.
- * @Default {false}
- */
- showError?: boolean;
-
- /** when showPromptChar is true, the hide the prompt characters are shown in focus of the control and hides in focus out of the control.
- * @Default {true}
- */
- showPromptChar?: boolean;
-
- /** MaskEdit input is displayed in rounded corner style when this property is set to true.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Specify the text alignment for mask edit textbox control.See TextAlign
- * @Default {left}
- */
- textAlign?: ej.TextAlign|string;
-
- /** Sets the jQuery validation error message in mask edit. This property works when the widget is present inside the form. Include jquery.validate.min.js plugin additionally.
- * @Default {null}
- */
- validationMessage?: any;
-
- /** Sets the jQuery validation rules to the MaskEdit. This property works when the widget is present inside the form. Include jquery.validate.min.js plugin additionally.
- * @Default {null}
- */
- validationRules?: any;
-
- /** Specifies the value for the mask edit textbox control.
- * @Default {null}
- */
- value?: string;
-
- /** Specifies the water mark text to be displayed in input text.
- * @Default {null}
- */
- watermarkText?: string;
-
- /** Specifies the width for the mask edit textbox control.
- * @Default {143pixel}
- */
- width?: string;
-
- /** Fires when value changed in mask edit textbox control. */
- change?(e: ChangeEventArgs): void;
-
- /** Fires after MaskEdit control is created. */
- create?(e: CreateEventArgs): void;
-
- /** Fires when the MaskEdit is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ /** returns the list of checked items.
+ */
+ checkedItems?: number;
+
+ /** returns the current checked item text.
+ */
+ checkedItemsText?: string;
+ }
+
+ export interface MouseUpEventArgs {
+
+ /** returns true if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+
+ /** returns the model value of the control.
+ */
+ model?: ej.ListView.Model;
+
+ /** If the child element exist return true; otherwise, false.
+ */
+ hasChild?: boolean;
+
+ /** returns the current list item.
+ */
+ item?: string;
+
+ /** returns the current text of item.
+ */
+ text?: string;
+
+ /** returns the current Index of the item.
+ */
+ index?: number;
+
+ /** If checked return true; otherwise, false.
+ */
+ isChecked?: boolean;
+
+ /** returns the list of checked items.
+ */
+ checkedItems?: number;
+
+ /** returns the current checked item text.
+ */
+ checkedItemsText?: string;
+ }
+
+ export interface AjaxSettings {
+
+ /** It specifies, whether to enable or disable asynchronous request.
+ */
+ async?: boolean;
+
+ /** It specifies the page will be cached in the web browser.
+ */
+ cache?: boolean;
+
+ /** It specifies the type of data is send in the query string.
+ */
+ contentType?: string;
+
+ /** It specifies the data as an object, will be passed in the query string.
+ */
+ data?: any;
+
+ /** It specifies the type of data that you're expecting back from the response.
+ */
+ dataType?: string;
+
+ /** It specifies the HTTP request type.
+ */
+ type?: string;
+ }
+ }
+
+ class MaskEdit extends ej.Widget {
+ static fn: MaskEdit;
+ constructor(element: JQuery | Element, options?: MaskEdit.Model);
+ static Locale: any;
+ model: MaskEdit.Model;
+ defaults: MaskEdit.Model;
+
+ /** To clear the text in mask edit textbox control.
+ * @returns {void}
+ */
+ clear(): void;
+
+ /** To disable the mask edit textbox control.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** To enable the mask edit textbox control.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** To obtained the pure value of the text value, removes all the symbols in mask edit textbox control.
+ * @returns {string}
+ */
+ get_StrippedValue(): string;
+
+ /** To obtained the textbox value as such that, Just replace all '_' to ' '(space) in mask edit textbox control.
+ * @returns {string}
+ */
+ get_UnstrippedValue(): string;
+ }
+ export namespace MaskEdit {
+
+ export interface Model {
+
+ /** Specify the cssClass to achieve custom theme.
+ * @Default {null}
+ */
+ cssClass?: string;
+
+ /** Specify the custom character allowed to entered in mask edit textbox control.
+ * @Default {null}
+ */
+ customCharacter?: string;
+
+ /** Specify the state of the mask edit textbox control.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Specify the enablePersistence to mask edit textbox to save current model value to browser cookies for state maintains.
+ */
+ enablePersistence?: boolean;
+
+ /** Specifies the height for the mask edit textbox control.
+ * @Default {28 px}
+ */
+ height?: string;
+
+ /** Specifies whether hide the prompt characters with spaces on blur. Prompt chars will be shown again on focus the textbox.
+ * @Default {false}
+ */
+ hidePromptOnLeave?: boolean;
+
+ /** Specifies the list of HTML attributes to be added to mask edit textbox.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Specify the inputMode for mask edit textbox control. See InputMode
+ * @Default {ej.InputMode.Text}
+ */
+ inputMode?: ej.InputMode | string;
+
+ /** Specifies the input mask.
+ * @Default {null}
+ */
+ maskFormat?: string;
+
+ /** Specifies the name attribute value for the mask edit textbox.
+ * @Default {null}
+ */
+ name?: string;
+
+ /** Toggles the readonly state of the mask edit textbox. When the mask edit textbox is readonly, it doesn't allow your input.
+ * @Default {false}
+ */
+ readOnly?: boolean;
+
+ /** Specifies whether the error will show until correct value entered in the mask edit textbox control.
+ * @Default {false}
+ */
+ showError?: boolean;
+
+ /** when showPromptChar is true, the hide the prompt characters are shown in focus of the control and hides in focus out of the control.
+ * @Default {true}
+ */
+ showPromptChar?: boolean;
+
+ /** MaskEdit input is displayed in rounded corner style when this property is set to true.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Specify the text alignment for mask edit textbox control.See TextAlign
+ * @Default {left}
+ */
+ textAlign?: ej.TextAlign | string;
+
+ /** Sets the jQuery validation error message in mask edit. This property works when the widget is present inside the form. Include jquery.validate.min.js plugin additionally.
+ * @Default {null}
+ */
+ validationMessage?: any;
+
+ /** Sets the jQuery validation rules to the MaskEdit. This property works when the widget is present inside the form. Include jquery.validate.min.js plugin additionally.
+ * @Default {null}
+ */
+ validationRules?: any;
+
+ /** Specifies the value for the mask edit textbox control.
+ * @Default {null}
+ */
+ value?: string;
+
+ /** Specifies the water mark text to be displayed in input text.
+ * @Default {null}
+ */
+ watermarkText?: string;
+
+ /** Specifies the width for the mask edit textbox control.
+ * @Default {143pixel}
+ */
+ width?: string;
+
+ /** Fires when value changed in mask edit textbox control. */
+ change?(e: ChangeEventArgs): void;
+
+ /** Fires after MaskEdit control is created. */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when the MaskEdit is destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
- /** Fires when focused in mask edit textbox control. */
- focusIn?(e: FocusInEventArgs): void;
-
- /** Fires when focused out in mask edit textbox control. */
- focusOut?(e: FocusOutEventArgs): void;
+ /** Fires when focused in mask edit textbox control. */
+ focusIn?(e: FocusInEventArgs): void;
+
+ /** Fires when focused out in mask edit textbox control. */
+ focusOut?(e: FocusOutEventArgs): void;
- /** Fires when keydown in mask edit textbox control. */
- keydown?(e: KeydownEventArgs): void;
+ /** Fires when keydown in mask edit textbox control. */
+ keydown?(e: KeydownEventArgs): void;
- /** Fires when key press in mask edit textbox control. */
- keyPress?(e: KeyPressEventArgs): void;
+ /** Fires when key press in mask edit textbox control. */
+ keyPress?(e: KeyPressEventArgs): void;
- /** Fires when keyup in mask edit textbox control. */
- keyup?(e: KeyupEventArgs): void;
+ /** Fires when keyup in mask edit textbox control. */
+ keyup?(e: KeyupEventArgs): void;
- /** Fires when mouse out in mask edit textbox control. */
- mouseOut?(e: MouseOutEventArgs): void;
+ /** Fires when mouse out in mask edit textbox control. */
+ mouseOut?(e: MouseOutEventArgs): void;
- /** Fires when mouse over in mask edit textbox control. */
- mouseOver?(e: MouseOverEventArgs): void;
-}
+ /** Fires when mouse over in mask edit textbox control. */
+ mouseOver?(e: MouseOverEventArgs): void;
+ }
-export interface ChangeEventArgs {
+ export interface ChangeEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the mask edit model
- */
- model?: ej.MaskEdit.Model;
+ /** returns the mask edit model
+ */
+ model?: ej.MaskEdit.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the mask edit value
- */
- value?: number;
+ /** returns the mask edit value
+ */
+ value?: number;
- /** returns unstripped value in mask edit textbox control.
- */
- unmaskedValue?: string;
-}
+ /** returns unstripped value in mask edit textbox control.
+ */
+ unmaskedValue?: string;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the MaskEdit model
- */
- model?: ej.MaskEdit.Model;
+ /** returns the MaskEdit model
+ */
+ model?: ej.MaskEdit.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the MaskEdit model
- */
- model?: ej.MaskEdit.Model;
+ /** returns the MaskEdit model
+ */
+ model?: ej.MaskEdit.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface FocusInEventArgs {
+ export interface FocusInEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the mask edit model
- */
- model?: ej.MaskEdit.Model;
+ /** returns the mask edit model
+ */
+ model?: ej.MaskEdit.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the mask edit value
- */
- value?: number;
+ /** returns the mask edit value
+ */
+ value?: number;
- /** returns unstripped value in mask edit textbox control.
- */
- unmaskedValue?: string;
-}
+ /** returns unstripped value in mask edit textbox control.
+ */
+ unmaskedValue?: string;
+ }
-export interface FocusOutEventArgs {
+ export interface FocusOutEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the mask edit model
- */
- model?: ej.MaskEdit.Model;
+ /** returns the mask edit model
+ */
+ model?: ej.MaskEdit.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the mask edit value
- */
- value?: number;
+ /** returns the mask edit value
+ */
+ value?: number;
- /** returns unstripped value in mask edit textbox control.
- */
- unmaskedValue?: string;
-}
+ /** returns unstripped value in mask edit textbox control.
+ */
+ unmaskedValue?: string;
+ }
-export interface KeydownEventArgs {
+ export interface KeydownEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the mask edit model
- */
- model?: ej.MaskEdit.Model;
+ /** returns the mask edit model
+ */
+ model?: ej.MaskEdit.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the mask edit value
- */
- value?: number;
+ /** returns the mask edit value
+ */
+ value?: number;
- /** returns unstripped value in mask edit textbox control.
- */
- unmaskedValue?: string;
-}
+ /** returns unstripped value in mask edit textbox control.
+ */
+ unmaskedValue?: string;
+ }
-export interface KeyPressEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the mask edit model
- */
- model?: ej.MaskEdit.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the mask edit value
- */
- value?: number;
-
- /** returns unstripped value in mask edit textbox control.
- */
- unmaskedValue?: string;
-}
-
-export interface KeyupEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the mask edit model
- */
- model?: ej.MaskEdit.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the mask edit value
- */
- value?: number;
-
- /** returns unstripped value in mask edit textbox control.
- */
- unmaskedValue?: string;
-}
-
-export interface MouseOutEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the mask edit model
- */
- model?: ej.MaskEdit.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the mask edit value
- */
- value?: number;
-
- /** returns unstripped value in mask edit textbox control.
- */
- unmaskedValue?: string;
-}
-
-export interface MouseOverEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the mask edit model
- */
- model?: ej.MaskEdit.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the mask edit value
- */
- value?: number;
-
- /** returns unstripped value in mask edit textbox control.
- */
- unmaskedValue?: string;
-}
-}
-enum InputMode {
-//string
-Password,
-//string
-Text,
-}
-enum TextAlign {
-//string
-Center,
-//string
-Justify,
-//string
-Left,
-//string
-Right,
-}
-
-class Menu extends ej.Widget {
- static fn: Menu;
- constructor(element: JQuery | Element, options?: Menu.Model);
- static Locale: any;
- model: Menu.Model;
- defaults: Menu.Model;
-
- /** Disables the Menu control.
- * @returns {void}
- */
- disable(): void;
-
- /** Specifies the Menu Item to be disabled by using the Menu Item Text.
- * @param {string} Specifies the Menu Item Text to be disabled.
- * @returns {void}
- */
- disableItem(itemtext: string): void;
-
- /** Specifies the Menu Item to be disabled by using the Menu Item Id.
- * @param {string|number} Specifies the Menu Item id to be disabled
- * @returns {void}
- */
- disableItemByID(itemid: string|number): void;
-
- /** Enables the Menu control.
- * @returns {void}
- */
- enable(): void;
-
- /** Specifies the Menu Item to be enabled by using the Menu Item Text.
- * @param {string} Specifies the Menu Item Text to be enabled.
- * @returns {void}
- */
- enableItem(itemtext: string): void;
-
- /** Specifies the Menu Item to be enabled by using the Menu Item Id.
- * @param {string|number} Specifies the Menu Item id to be enabled.
- * @returns {void}
- */
- enableItemByID(itemid: string|number): void;
-
- /** Hides the Context Menu control.
- * @returns {void}
- */
- hide(): void;
-
- /** Hides the specific items in Menu control.
- * @returns {void}
- */
- hideItems(): void;
-
- /** Insert the menu item as child of target node.
- * @param {any} Information about Menu item.
- * @param {string|any} Selector of target node or Object of target node.
- * @returns {void}
- */
- insert(item: any, target: string|any): void;
-
- /** Insert the menu item after the target node.
- * @param {any} Information about Menu item.
- * @param {string|any} Selector of target node or Object of target node.
- * @returns {void}
- */
- insertAfter(item: any, target: string|any): void;
-
- /** Insert the menu item before the target node.
- * @param {any} Information about Menu item.
- * @param {string|any} Selector of target node or Object of target node.
- * @returns {void}
- */
- insertBefore(item: any, target: string|any): void;
-
- /** Remove Menu item.
- * @param {any|Array} Selector of target node or Object of target node.
- * @returns {void}
- */
- remove(target: any|any[]): void;
-
- /** To show the Menu control.
- * @param {number} x co-ordinate position of context menu.
- * @param {number} y co-ordinate position of context menu.
- * @param {any} target element
- * @param {any} name of the event
- * @returns {void}
- */
- show(locationX: number, locationY: number, targetElement: any, event: any): void;
-
- /** Show the specific items in Menu control.
- * @returns {void}
- */
- showItems(): void;
-}
-export namespace Menu {
-
-export interface Model {
-
- /** To enable or disable the Animation while hover or click an menu items.See AnimationType
- * @Default {ej.AnimationType.Default}
- */
- animationType?: ej.AnimationType|string;
-
- /** Specifies the target id of context menu. On right clicking the specified contextTarget element, context menu gets shown.
- * @Default {null}
- */
- contextMenuTarget?: string;
-
- /** Specify the CSS class to achieve custom theme.
- */
- cssClass?: string;
-
- /** To enable or disable the Animation effect while hover or click an menu items.
- * @Default {true}
- */
- enableAnimation?: boolean;
-
- /** Specifies the root menu items to be aligned center in horizontal menu.
- * @Default {false}
- */
- enableCenterAlign?: boolean;
-
- /** Enable / Disable the Menu control.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Specifies the menu items to be displayed in right to left direction.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** When this property sets to false, the menu items is displayed without any separators.
- * @Default {true}
- */
- enableSeparator?: boolean;
-
- /** Specifies the target which needs to be excluded. i.e., The context menu will not be displayed in those specified targets.
- * @Default {null}
- */
- excludeTarget?: string;
-
- /** Fields used to bind the data source and it includes following field members to make data bind easier.
- * @Default {null}
- */
- fields?: Fields;
-
- /** Specifies the height of the root menu.
- * @Default {auto}
- */
- height?: string|number;
-
- /** Specifies the list of HTML attributes to be added to menu control.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Enables/disables responsive support for the Menu control during the window resizing time.
- * @Default {true}
- */
- isResponsive?: boolean;
-
- /** Specifies the type of the menu. Essential JavaScript Menu consists of two type of menu, they are Normal Menu and Context Menu mode.See MenuType
- * @Default {ej.MenuType.NormalMenu}
- */
- menuType?: string|ej.MenuType;
-
- /** Specifies the sub menu items to be show or open only on click.
- * @Default {false}
- */
- openOnClick?: boolean;
-
- /** Specifies the orientation of normal menu. Normal menu can rendered in horizontal or vertical direction by using this API. See Orientation
- * @Default {ej.Orientation.Horizontal}
- */
- orientation?: ej.Orientation|string;
-
- /** Specifies the main menu items arrows only to be shown if it contains child items.
- * @Default {true}
- */
- showRootLevelArrows?: boolean;
-
- /** Specifies the sub menu items arrows only to be shown if it contains child items.
- * @Default {true}
- */
- showSubLevelArrows?: boolean;
-
- /** Specifies position of pull down submenu that will appear on mouse over.See Direction
- * @Default {ej.Direction.Right}
- */
- subMenuDirection?: string|ej.Direction;
-
- /** Specifies the title to responsive menu.
- * @Default {Menu}
- */
- titleText?: string;
-
- /** Specifies the width of the main menu.
- * @Default {auto}
- */
- width?: string|number;
-
- /** Specifies the popup menu height.
- * @Default {auto}
- */
- overflowHeight?: string|number;
-
- /** Specifies the popup menu width.
- * @Default {auto}
- */
- overflowWidth?: string|number;
-
- /** Fires before context menu gets open. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
-
- /** Fires when mouse click on menu items. */
- click?(e: ClickEventArgs): void;
-
- /** Fire when context menu on close. */
- close?(e: CloseEventArgs): void;
-
- /** Fires when context menu on open. */
- open?(e: OpenEventArgs): void;
+ export interface KeyPressEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the mask edit model
+ */
+ model?: ej.MaskEdit.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the mask edit value
+ */
+ value?: number;
+
+ /** returns unstripped value in mask edit textbox control.
+ */
+ unmaskedValue?: string;
+ }
+
+ export interface KeyupEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the mask edit model
+ */
+ model?: ej.MaskEdit.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the mask edit value
+ */
+ value?: number;
+
+ /** returns unstripped value in mask edit textbox control.
+ */
+ unmaskedValue?: string;
+ }
+
+ export interface MouseOutEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the mask edit model
+ */
+ model?: ej.MaskEdit.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the mask edit value
+ */
+ value?: number;
+
+ /** returns unstripped value in mask edit textbox control.
+ */
+ unmaskedValue?: string;
+ }
+
+ export interface MouseOverEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the mask edit model
+ */
+ model?: ej.MaskEdit.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the mask edit value
+ */
+ value?: number;
+
+ /** returns unstripped value in mask edit textbox control.
+ */
+ unmaskedValue?: string;
+ }
+ }
+ enum InputMode {
+ //string
+ Password,
+ //string
+ Text,
+ }
+ enum TextAlign {
+ //string
+ Center,
+ //string
+ Justify,
+ //string
+ Left,
+ //string
+ Right,
+ }
+
+ class Menu extends ej.Widget {
+ static fn: Menu;
+ constructor(element: JQuery | Element, options?: Menu.Model);
+ static Locale: any;
+ model: Menu.Model;
+ defaults: Menu.Model;
+
+ /** Disables the Menu control.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Specifies the Menu Item to be disabled by using the Menu Item Text.
+ * @param {string} Specifies the Menu Item Text to be disabled.
+ * @returns {void}
+ */
+ disableItem(itemtext: string): void;
+
+ /** Specifies the Menu Item to be disabled by using the Menu Item Id.
+ * @param {string|number} Specifies the Menu Item id to be disabled
+ * @returns {void}
+ */
+ disableItemByID(itemid: string | number): void;
+
+ /** Enables the Menu control.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Specifies the Menu Item to be enabled by using the Menu Item Text.
+ * @param {string} Specifies the Menu Item Text to be enabled.
+ * @returns {void}
+ */
+ enableItem(itemtext: string): void;
+
+ /** Specifies the Menu Item to be enabled by using the Menu Item Id.
+ * @param {string|number} Specifies the Menu Item id to be enabled.
+ * @returns {void}
+ */
+ enableItemByID(itemid: string | number): void;
+
+ /** Hides the Context Menu control.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** Hides the specific items in Menu control.
+ * @returns {void}
+ */
+ hideItems(): void;
+
+ /** Insert the menu item as child of target node.
+ * @param {any} Information about Menu item.
+ * @param {string|any} Selector of target node or Object of target node.
+ * @returns {void}
+ */
+ insert(item: any, target: string | any): void;
+
+ /** Insert the menu item after the target node.
+ * @param {any} Information about Menu item.
+ * @param {string|any} Selector of target node or Object of target node.
+ * @returns {void}
+ */
+ insertAfter(item: any, target: string | any): void;
+
+ /** Insert the menu item before the target node.
+ * @param {any} Information about Menu item.
+ * @param {string|any} Selector of target node or Object of target node.
+ * @returns {void}
+ */
+ insertBefore(item: any, target: string | any): void;
+
+ /** Remove Menu item.
+ * @param {any|Array} Selector of target node or Object of target node.
+ * @returns {void}
+ */
+ remove(target: any | any[]): void;
+
+ /** To show the Menu control.
+ * @param {number} x co-ordinate position of context menu.
+ * @param {number} y co-ordinate position of context menu.
+ * @param {any} target element
+ * @param {any} name of the event
+ * @returns {void}
+ */
+ show(locationX: number, locationY: number, targetElement: any, event: any): void;
+
+ /** Show the specific items in Menu control.
+ * @returns {void}
+ */
+ showItems(): void;
+ }
+ export namespace Menu {
+
+ export interface Model {
+
+ /** To enable or disable the Animation while hover or click an menu items.See AnimationType
+ * @Default {ej.AnimationType.Default}
+ */
+ animationType?: ej.AnimationType | string;
+
+ /** Specifies the target id of context menu. On right clicking the specified contextTarget element, context menu gets shown.
+ * @Default {null}
+ */
+ contextMenuTarget?: string;
+
+ /** Specify the CSS class to achieve custom theme.
+ */
+ cssClass?: string;
+
+ /** To enable or disable the Animation effect while hover or click an menu items.
+ * @Default {true}
+ */
+ enableAnimation?: boolean;
+
+ /** Specifies the root menu items to be aligned center in horizontal menu.
+ * @Default {false}
+ */
+ enableCenterAlign?: boolean;
+
+ /** Enable / Disable the Menu control.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Specifies the menu items to be displayed in right to left direction.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** When this property sets to false, the menu items is displayed without any separators.
+ * @Default {true}
+ */
+ enableSeparator?: boolean;
+
+ /** Specifies the target which needs to be excluded. i.e., The context menu will not be displayed in those specified targets.
+ * @Default {null}
+ */
+ excludeTarget?: string;
+
+ /** Fields used to bind the data source and it includes following field members to make data bind easier.
+ * @Default {null}
+ */
+ fields?: Fields;
+
+ /** Specifies the height of the root menu.
+ * @Default {auto}
+ */
+ height?: string | number;
+
+ /** Specifies the list of HTML attributes to be added to menu control.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Enables/disables responsive support for the Menu control during the window resizing time.
+ * @Default {true}
+ */
+ isResponsive?: boolean;
+
+ /** Specifies the type of the menu. Essential JavaScript Menu consists of two type of menu, they are Normal Menu and Context Menu mode.See MenuType
+ * @Default {ej.MenuType.NormalMenu}
+ */
+ menuType?: string | ej.MenuType;
+
+ /** Specifies the sub menu items to be show or open only on click.
+ * @Default {false}
+ */
+ openOnClick?: boolean;
+
+ /** Specifies the orientation of normal menu. Normal menu can rendered in horizontal or vertical direction by using this API. See Orientation
+ * @Default {ej.Orientation.Horizontal}
+ */
+ orientation?: ej.Orientation | string;
+
+ /** Specifies the main menu items arrows only to be shown if it contains child items.
+ * @Default {true}
+ */
+ showRootLevelArrows?: boolean;
+
+ /** Specifies the sub menu items arrows only to be shown if it contains child items.
+ * @Default {true}
+ */
+ showSubLevelArrows?: boolean;
+
+ /** Specifies position of pull down submenu that will appear on mouse over.See Direction
+ * @Default {ej.Direction.Right}
+ */
+ subMenuDirection?: string | ej.Direction;
+
+ /** Specifies the title to responsive menu.
+ * @Default {Menu}
+ */
+ titleText?: string;
+
+ /** Specifies the width of the main menu.
+ * @Default {auto}
+ */
+ width?: string | number;
+
+ /** Specifies the popup menu height.
+ * @Default {auto}
+ */
+ overflowHeight?: string | number;
+
+ /** Specifies the popup menu width.
+ * @Default {auto}
+ */
+ overflowWidth?: string | number;
+
+ /** Fires before context menu gets open. */
+ beforeOpen?(e: BeforeOpenEventArgs): void;
+
+ /** Fires when mouse click on menu items. */
+ click?(e: ClickEventArgs): void;
+
+ /** Fire when context menu on close. */
+ close?(e: CloseEventArgs): void;
+
+ /** Fires when context menu on open. */
+ open?(e: OpenEventArgs): void;
- /** Fires to create menu items. */
- create?(e: CreateEventArgs): void;
+ /** Fires to create menu items. */
+ create?(e: CreateEventArgs): void;
- /** Fires to destroy menu items. */
- destroy?(e: DestroyEventArgs): void;
+ /** Fires to destroy menu items. */
+ destroy?(e: DestroyEventArgs): void;
- /** Fires when key down on menu items. */
- keydown?(e: KeydownEventArgs): void;
+ /** Fires when key down on menu items. */
+ keydown?(e: KeydownEventArgs): void;
- /** Fires when mouse out from menu items. */
- mouseout?(e: MouseoutEventArgs): void;
+ /** Fires when mouse out from menu items. */
+ mouseout?(e: MouseoutEventArgs): void;
- /** Fires when mouse over the Menu items. */
- mouseover?(e: MouseoverEventArgs): void;
+ /** Fires when mouse over the Menu items. */
+ mouseover?(e: MouseoverEventArgs): void;
- /** Fires when overflow popup menu opens. */
- overflowOpen?(e: OverflowOpenEventArgs): void;
+ /** Fires when overflow popup menu opens. */
+ overflowOpen?(e: OverflowOpenEventArgs): void;
- /** Fires when overflow popup menu closes. */
- overflowClose?(e: OverflowCloseEventArgs): void;
-}
+ /** Fires when overflow popup menu closes. */
+ overflowClose?(e: OverflowCloseEventArgs): void;
+ }
-export interface BeforeOpenEventArgs {
+ export interface BeforeOpenEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the menu model
- */
- model?: ej.Menu.Model;
+ /** returns the menu model
+ */
+ model?: ej.Menu.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the target element
- */
- target?: any;
-}
+ /** returns the target element
+ */
+ target?: any;
+ }
-export interface ClickEventArgs {
+ export interface ClickEventArgs {
- /** returns the menu model
- */
- model?: ej.Menu.Model;
+ /** returns the menu model
+ */
+ model?: ej.Menu.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns clicked menu item text
- */
- text?: string;
+ /** returns clicked menu item text
+ */
+ text?: string;
- /** returns clicked menu item element
- */
- element?: any;
+ /** returns clicked menu item element
+ */
+ element?: any;
- /** returns the event
- */
- event?: any;
+ /** returns the event
+ */
+ event?: any;
- /** returns the selected item
- */
- selectedItem?: number;
-}
+ /** returns the selected item
+ */
+ selectedItem?: number;
+ }
-export interface CloseEventArgs {
+ export interface CloseEventArgs {
- /** returns the menu model
- */
- model?: ej.Menu.Model;
+ /** returns the menu model
+ */
+ model?: ej.Menu.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the target element
- */
- target?: any;
-}
+ /** returns the target element
+ */
+ target?: any;
+ }
-export interface OpenEventArgs {
+ export interface OpenEventArgs {
- /** returns the menu model
- */
- model?: ej.Menu.Model;
+ /** returns the menu model
+ */
+ model?: ej.Menu.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the target element
- */
- target?: any;
-}
+ /** returns the target element
+ */
+ target?: any;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** returns the menu model
- */
- model?: ej.Menu.Model;
+ /** returns the menu model
+ */
+ model?: ej.Menu.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** returns the menu model
- */
- model?: ej.Menu.Model;
+ /** returns the menu model
+ */
+ model?: ej.Menu.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface KeydownEventArgs {
+ export interface KeydownEventArgs {
- /** returns the menu model
- */
- model?: ej.Menu.Model;
+ /** returns the menu model
+ */
+ model?: ej.Menu.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns clicked menu item text
- */
- menuText?: string;
+ /** returns clicked menu item text
+ */
+ menuText?: string;
- /** returns clicked menu item element
- */
- element?: any;
+ /** returns clicked menu item element
+ */
+ element?: any;
- /** returns the event
- */
- event?: any;
-}
+ /** returns the event
+ */
+ event?: any;
+ }
-export interface MouseoutEventArgs {
+ export interface MouseoutEventArgs {
- /** returns the menu model
- */
- model?: ej.Menu.Model;
+ /** returns the menu model
+ */
+ model?: ej.Menu.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns clicked menu item text
- */
- text?: string;
+ /** returns clicked menu item text
+ */
+ text?: string;
- /** returns clicked menu item element
- */
- element?: any;
+ /** returns clicked menu item element
+ */
+ element?: any;
- /** returns the event
- */
- event?: any;
-}
+ /** returns the event
+ */
+ event?: any;
+ }
-export interface MouseoverEventArgs {
+ export interface MouseoverEventArgs {
- /** returns the menu model
- */
- model?: ej.Menu.Model;
+ /** returns the menu model
+ */
+ model?: ej.Menu.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns clicked menu item text
- */
- text?: string;
+ /** returns clicked menu item text
+ */
+ text?: string;
- /** returns clicked menu item element
- */
- element?: any;
+ /** returns clicked menu item element
+ */
+ element?: any;
- /** returns the event
- */
- event?: any;
-}
+ /** returns the event
+ */
+ event?: any;
+ }
-export interface OverflowOpenEventArgs {
-
- /** returns the menu model
- */
- model?: ej.Menu.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the event object
- */
- e?: any;
-
- /** if the event should be cancelled ; otherwise ,false
- */
- cancel?: boolean;
-}
-
-export interface OverflowCloseEventArgs {
-
- /** returns the menu model
- */
- model?: ej.Menu.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the event object
- */
- e?: any;
-
- /** if the event should be cancelled ; otherwise ,false
- */
- cancel?: boolean;
-}
-
-export interface Fields {
-
- /** It receives the child data for the inner level.
- */
- child?: any;
-
- /** It receives datasource as Essential DataManager object and JSON object.
- */
- dataSource?: any;
-
- /** Specifies the HTML attributes to “LI” item list.
- */
- htmlAttribute?: string;
-
- /** Specifies the id to menu items list
- */
- id?: string;
-
- /** Specifies the image attribute to “img” tag inside items list.
- */
- imageAttribute?: string;
-
- /** Specifies the image URL to “img” tag inside item list.
- */
- imageUrl?: string;
-
- /** Adds custom attributes like "target" to the anchor tag of the menu items.
- */
- linkAttribute?: string;
-
- /** Specifies the parent id of the table.
- */
- parentId?: string;
-
- /** It receives query to retrieve data from the table (query is same as SQL).
- */
- query?: any;
-
- /** Specifies the sprite CSS class to “LI” item list.
- */
- spriteCssClass?: string;
-
- /** It receives table name to execute query on the corresponding table.
- */
- tableName?: string;
-
- /** Specifies the text of menu items list.
- */
- text?: string;
-
- /** Specifies the URL to the anchor tag in menu item list.
- */
- url?: string;
-}
-}
-enum AnimationType {
-//string
-Default,
-//string
-None,
-}
-enum MenuType {
-//string
-ContextMenu,
-//string
-NormalMenu,
-}
-enum Direction {
-//string
-Left,
-//string
-None,
-//string
-Right,
-}
-
-class Pager extends ej.Widget {
- static fn: Pager;
- constructor(element: JQuery | Element, options?: Pager.Model);
- static Locale: any;
- model: Pager.Model;
- defaults: Pager.Model;
-
- /** Send a paging request to specified page through the pager control.
- * @param {number} Specifies the index to be navigated
- * @returns {void}
- */
- gotoPage(pageIndex: number): void;
-
- /** refreshPager() helps to refresh the model value of pager control.
- * @returns {void}
- */
- refreshPager(): void;
-}
-export namespace Pager {
-
-export interface Model {
-
- /** Gets or sets a value that indicates whether to display the custom text message in Pager.
- */
- customText?: string;
-
- /** Gets or sets a value that indicates whether to define which page to display currently in pager.
- * @Default {1}
- */
- currentPage?: number;
-
- /** Gets or sets a value that indicates whether to display the external Message in Pager.
- * @Default {false}
- */
- enableExternalMessage?: boolean;
-
- /** Gets or sets a value that indicates whether to pass the current page information as a query string along with the URL while navigating to other page.
- * @Default {false}
- */
- enableQueryString?: boolean;
-
- /** Align content in the pager control from right to left by setting the property as true.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Gets or sets a value that indicates whether to display the external Message in Pager.
- */
- externalMessage?: string;
-
- /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e.
- * in a language and culture specific to a particular country or region.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Gets or sets a value that indicates whether to define the number of pages displayed in the pager for navigation.
- * @Default {10}
- */
- pageCount?: number;
-
- /** Gets or sets a value that indicates whether to define the number of records displayed per page.
- * @Default {12}
- */
- pageSize?: number;
-
- /** Get or sets a value of total number of pages in the pager. The totalPages value is calculated based on page size and total records.
- * @Default {null}
- */
- totalPages?: number;
-
- /** Get the value of total number of records which is bound to a data item.
- * @Default {null}
- */
- totalRecordsCount?: number;
-
- /** Shows or hides the current page information in pager footer.
- * @Default {true}
- */
- showPageInfo?: boolean;
-
- /** Triggered when pager numeric item is clicked in pager control. */
- click?(e: ClickEventArgs): void;
-}
-
-export interface ClickEventArgs {
-
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-
- /** Returns the current page index.
- */
- currentPage?: number;
-
- /** Returns the pager model.
- */
- model?: any;
-
- /** Returns the name of event
- */
- type?: string;
-
- /** Returns current action event type and its target.
- */
- event?: any;
-}
-}
-
-class ProgressBar extends ej.Widget {
- static fn: ProgressBar;
- constructor(element: JQuery | Element, options?: ProgressBar.Model);
- static Locale: any;
- model: ProgressBar.Model;
- defaults: ProgressBar.Model;
-
- /** Destroy the progressbar widget
- * @returns {void}
- */
- destroy(): void;
-
- /** Disables the progressbar control
- * @returns {void}
- */
- disable(): void;
-
- /** Enables the progressbar control
- * @returns {void}
- */
- enable(): void;
-
- /** Returns the current progress value in percent.
- * @returns {number}
- */
- getPercentage(): number;
-
- /** Returns the current progress value
- * @returns {number}
- */
- getValue(): number;
-}
-export namespace ProgressBar {
-
-export interface Model {
-
- /** Sets the root CSS class for ProgressBar theme, which is used customize.
- * @Default {null}
- */
- cssClass?: string;
-
- /** When this property sets to false, it disables the ProgressBar control
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Save current model value to browser cookies for state maintains. While refresh the progressBar control page retains the model value apply from browser cookies
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Sets the ProgressBar direction as right to left alignment.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Defines the height of the ProgressBar.
- * @Default {null}
- */
- height?: number|string;
-
- /** It allows to define the characteristics of the progressBar control. It will helps to extend the capability of an HTML element.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Sets the maximum value of the ProgressBar.
- * @Default {100}
- */
- maxValue?: number;
-
- /** Sets the minimum value of the ProgressBar.
- * @Default {0}
- */
- minValue?: number;
-
- /** Sets the ProgressBar value in percentage. The value should be in between 0 to 100.
- * @Default {0}
- */
- percentage?: number;
-
- /** Displays rounded corner borders on the progressBar control.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Sets the custom text for the ProgressBar. The text placed in the middle of the ProgressBar and it can be customizable using the class 'e-progress-text'.
- * @Default {null}
- */
- text?: string;
-
- /** Sets the ProgressBar value. The value should be in between min and max values.
- * @Default {0}
- */
- value?: number;
-
- /** Defines the width of the ProgressBar.
- * @Default {null}
- */
- width?: number|string;
-
- /** Event triggers when the progress value changed */
- change?(e: ChangeEventArgs): void;
-
- /** Event triggers when the process completes (at 100%) */
- complete?(e: CompleteEventArgs): void;
-
- /** Event triggers when the progressbar are created */
- create?(e: CreateEventArgs): void;
-
- /** Event triggers when the progressbar are destroyed */
- destroy?(e: DestroyEventArgs): void;
-
- /** Event triggers when the process starts (from 0%) */
- start?(e: StartEventArgs): void;
-}
-
-export interface ChangeEventArgs {
-
- /** returns the cancel option value
- */
- cancel?: boolean;
-
- /** returns the ProgressBar model
- */
- model?: ej.ProgressBar.Model;
-
- /** returns the current progress percentage
- */
- percentage?: any;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the current progress value
- */
- value?: string;
-}
-
-export interface CompleteEventArgs {
-
- /** returns the cancel option value
- */
- cancel?: boolean;
-
- /** returns the ProgressBar model
- */
- model?: ej.ProgressBar.Model;
-
- /** returns the current progress percentage
- */
- percentage?: any;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the current progress value
- */
- value?: string;
-}
-
-export interface CreateEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the progressbar model
- */
- model?: ej.ProgressBar.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface DestroyEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the progressbar model
- */
- model?: ej.ProgressBar.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface StartEventArgs {
-
- /** returns the cancel option value
- */
- cancel?: boolean;
-
- /** returns the ProgressBar model
- */
- model?: ej.ProgressBar.Model;
-
- /** returns the current progress percentage
- */
- percentage?: any;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the current progress value
- */
- value?: string;
-}
-}
-
-class RadioButton extends ej.Widget {
- static fn: RadioButton;
- constructor(element: JQuery | Element, options?: RadioButton.Model);
- static Locale: any;
- model: RadioButton.Model;
- defaults: RadioButton.Model;
-
- /** To disable the RadioButton
- * @returns {void}
- */
- disable(): void;
-
- /** To enable the RadioButton
- * @returns {void}
- */
- enable(): void;
-}
-export namespace RadioButton {
-
-export interface Model {
-
- /** Specifies the check attribute of the Radio Button.
- * @Default {false}
- */
- checked?: boolean;
-
- /** Specify the CSS class to RadioButton to achieve custom theme.
- */
- cssClass?: string;
-
- /** Specifies the RadioButton control state.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Specifies the enablePersistence property for RadioButton while initialization. The enablePersistence API save current model value to browser cookies for state maintains.
- * While refreshing the radio button control page the model value apply from browser cookies.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Specify the Right to Left direction to RadioButton
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Specifies the HTML Attributes of the Checkbox
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Specifies the id attribute for the Radio Button while initialization.
- * @Default {null}
- */
- id?: string;
-
- /** Specify the idPrefix value to be added before the current id of the RadioButton.
- * @Default {ej}
- */
- idPrefix?: string;
-
- /** Specifies the name attribute for the Radio Button while initialization.
- * @Default {Sets id as name if it is null}
- */
- name?: string;
-
- /** Specifies the size of the RadioButton.
- * @Default {small}
- */
- size?: ej.RadioButtonSize|string;
-
- /** Specifies the text content for RadioButton.
- */
- text?: string;
-
- /** Set the jQuery validation error message in radio button.
- * @Default {null}
- */
- validationMessage?: any;
-
- /** Set the jQuery validation rules in radio button.
- * @Default {null}
- */
- validationRules?: any;
-
- /** Specifies the value attribute of the Radio Button.
- * @Default {null}
- */
- value?: string;
-
- /** Fires before the RadioButton is going to changed its state successfully */
- beforeChange?(e: BeforeChangeEventArgs): void;
-
- /** Fires when the RadioButton state is changed successfully */
- change?(e: ChangeEventArgs): void;
-
- /** Fires when the RadioButton created successfully */
- create?(e: CreateEventArgs): void;
-
- /** Fires when the RadioButton destroyed successfully */
- destroy?(e: DestroyEventArgs): void;
-}
-
-export interface BeforeChangeEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the RadioButton model
- */
- model?: ej.RadioButton.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns true if element is checked, otherwise returns false
- */
- isChecked?: boolean;
-
- /** returns true if change event triggered by interaction, otherwise returns false
- */
- isInteraction?: boolean;
-}
-
-export interface ChangeEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the RadioButton model
- */
- model?: ej.RadioButton.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns true if element is checked, otherwise returns false
- */
- isChecked?: boolean;
-
- /** returns true if change event triggered by interaction, otherwise returns false
- */
- isInteraction?: boolean;
-}
-
-export interface CreateEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the RadioButton model
- */
- model?: ej.RadioButton.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface DestroyEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the RadioButton model
- */
- model?: ej.RadioButton.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-}
-enum RadioButtonSize {
-//Shows small size radio button
-Small,
-//Shows medium size radio button
-Medium,
-}
-
-class Rating extends ej.Widget {
- static fn: Rating;
- constructor(element: JQuery | Element, options?: Rating.Model);
- static Locale: any;
- model: Rating.Model;
- defaults: Rating.Model;
-
- /** Destroy the Rating widget all events bound will be unbind automatically and bring the control to pre-init state.
- * @returns {void}
- */
- destroy(): void;
-
- /** To get the current value of rating control.
- * @returns {number}
- */
- getValue(): number;
-
- /** To hide the rating control.
- * @returns {void}
- */
- hide(): void;
-
- /** User can refresh the rating control to identify changes.
- * @returns {void}
- */
- refresh(): void;
-
- /** To reset the rating value.
- * @returns {void}
- */
- reset(): void;
-
- /** To set the rating value.
- * @param {string|number} Specifies the rating value.
- * @returns {void}
- */
- setValue(value: string|number): void;
-
- /** To show the rating control
- * @returns {void}
- */
- show(): void;
-}
-export namespace Rating {
-
-export interface Model {
-
- /** Enables the rating control with reset button.It can be used to reset the rating control value.
- * @Default {true}
- */
- allowReset?: boolean;
-
- /** Specify the CSS class to achieve custom theme.
- */
- cssClass?: string;
-
- /** When this property is set to false, it disables the rating control.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Save current model value to browser cookies for state maintenance. While refresh the page Rating control values are retained.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Specifies the height of the Rating control wrapper.
- * @Default {null}
- */
- height?: string;
-
- /** Specifies the list of HTML attributes to be added to rating control.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Specifies the value to be increased while navigating between shapes(stars) in Rating control.
- * @Default {1}
- */
- incrementStep?: number;
-
- /** Allow to render the maximum number of Rating shape(star).
- * @Default {5}
- */
- maxValue?: number;
-
- /** Allow to render the minimum number of Rating shape(star).
- * @Default {0}
- */
- minValue?: number;
-
- /** Specifies the orientation of Rating control. See Orientation
- * @Default {ej.Rating.Orientation.Horizontal}
- */
- orientation?: ej.Orientation|string;
-
- /** Helps to provide more precise ratings.Rating control supports three precision modes - full, half, and exact. See Precision
- * @Default {full}
- */
- precision?: ej.Rating.Precision|string;
-
- /** Interaction with Rating control can be prevented by enabling this API.
- * @Default {false}
- */
- readOnly?: boolean;
-
- /** To specify the height of each shape in Rating control.
- * @Default {23}
- */
- shapeHeight?: number;
-
- /** To specify the width of each shape in Rating control.
- * @Default {23}
- */
- shapeWidth?: number;
-
- /** Enables the tooltip option.Currently selected value will be displayed in tooltip.
- * @Default {true}
- */
- showTooltip?: boolean;
-
- /** To specify the number of stars to be selected while rendering.
- * @Default {1}
- */
- value?: number;
-
- /** Specifies the width of the Rating control wrapper.
- * @Default {null}
- */
- width?: string;
-
- /** Fires when Rating value changes. */
- change?(e: ChangeEventArgs): void;
-
- /** Fires when Rating control is clicked successfully. */
- click?(e: ClickEventArgs): void;
-
- /** Fires when Rating control is created. */
- create?(e: CreateEventArgs): void;
-
- /** Fires when Rating control is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
-
- /** Fires when mouse hover is removed from Rating control. */
- mouseout?(e: MouseoutEventArgs): void;
-
- /** Fires when mouse hovered over the Rating control. */
- mouseover?(e: MouseoverEventArgs): void;
-}
-
-export interface ChangeEventArgs {
+ export interface OverflowOpenEventArgs {
+
+ /** returns the menu model
+ */
+ model?: ej.Menu.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the event object
+ */
+ e?: any;
+
+ /** if the event should be cancelled ; otherwise ,false
+ */
+ cancel?: boolean;
+ }
+
+ export interface OverflowCloseEventArgs {
+
+ /** returns the menu model
+ */
+ model?: ej.Menu.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the event object
+ */
+ e?: any;
+
+ /** if the event should be cancelled ; otherwise ,false
+ */
+ cancel?: boolean;
+ }
+
+ export interface Fields {
+
+ /** It receives the child data for the inner level.
+ */
+ child?: any;
+
+ /** It receives datasource as Essential DataManager object and JSON object.
+ */
+ dataSource?: any;
+
+ /** Specifies the HTML attributes to “LI†item list.
+ */
+ htmlAttribute?: string;
+
+ /** Specifies the id to menu items list
+ */
+ id?: string;
+
+ /** Specifies the image attribute to “img†tag inside items list.
+ */
+ imageAttribute?: string;
+
+ /** Specifies the image URL to “img†tag inside item list.
+ */
+ imageUrl?: string;
+
+ /** Adds custom attributes like "target" to the anchor tag of the menu items.
+ */
+ linkAttribute?: string;
+
+ /** Specifies the parent id of the table.
+ */
+ parentId?: string;
+
+ /** It receives query to retrieve data from the table (query is same as SQL).
+ */
+ query?: any;
+
+ /** Specifies the sprite CSS class to “LI†item list.
+ */
+ spriteCssClass?: string;
+
+ /** It receives table name to execute query on the corresponding table.
+ */
+ tableName?: string;
+
+ /** Specifies the text of menu items list.
+ */
+ text?: string;
+
+ /** Specifies the URL to the anchor tag in menu item list.
+ */
+ url?: string;
+ }
+ }
+ enum AnimationType {
+ //string
+ Default,
+ //string
+ None,
+ }
+ enum MenuType {
+ //string
+ ContextMenu,
+ //string
+ NormalMenu,
+ }
+ enum Direction {
+ //string
+ Left,
+ //string
+ None,
+ //string
+ Right,
+ }
+
+ class Pager extends ej.Widget {
+ static fn: Pager;
+ constructor(element: JQuery | Element, options?: Pager.Model);
+ static Locale: any;
+ model: Pager.Model;
+ defaults: Pager.Model;
+
+ /** Send a paging request to specified page through the pager control.
+ * @param {number} Specifies the index to be navigated
+ * @returns {void}
+ */
+ gotoPage(pageIndex: number): void;
+
+ /** refreshPager() helps to refresh the model value of pager control.
+ * @returns {void}
+ */
+ refreshPager(): void;
+ }
+ export namespace Pager {
+
+ export interface Model {
+
+ /** Gets or sets a value that indicates whether to display the custom text message in Pager.
+ */
+ customText?: string;
+
+ /** Gets or sets a value that indicates whether to define which page to display currently in pager.
+ * @Default {1}
+ */
+ currentPage?: number;
+
+ /** Gets or sets a value that indicates whether to display the external Message in Pager.
+ * @Default {false}
+ */
+ enableExternalMessage?: boolean;
+
+ /** Gets or sets a value that indicates whether to pass the current page information as a query string along with the URL while navigating to other page.
+ * @Default {false}
+ */
+ enableQueryString?: boolean;
+
+ /** Align content in the pager control from right to left by setting the property as true.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Gets or sets a value that indicates whether to display the external Message in Pager.
+ */
+ externalMessage?: string;
+
+ /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e.
+ * in a language and culture specific to a particular country or region.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Gets or sets a value that indicates whether to define the number of pages displayed in the pager for navigation.
+ * @Default {10}
+ */
+ pageCount?: number;
+
+ /** Gets or sets a value that indicates whether to define the number of records displayed per page.
+ * @Default {12}
+ */
+ pageSize?: number;
+
+ /** Get or sets a value of total number of pages in the pager. The totalPages value is calculated based on page size and total records.
+ * @Default {null}
+ */
+ totalPages?: number;
+
+ /** Get the value of total number of records which is bound to a data item.
+ * @Default {null}
+ */
+ totalRecordsCount?: number;
+
+ /** Shows or hides the current page information in pager footer.
+ * @Default {true}
+ */
+ showPageInfo?: boolean;
+
+ /** Triggered when pager numeric item is clicked in pager control. */
+ click?(e: ClickEventArgs): void;
+ }
+
+ export interface ClickEventArgs {
+
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+
+ /** Returns the current page index.
+ */
+ currentPage?: number;
+
+ /** Returns the pager model.
+ */
+ model?: any;
+
+ /** Returns the name of event
+ */
+ type?: string;
+
+ /** Returns current action event type and its target.
+ */
+ event?: any;
+ }
+ }
+
+ class ProgressBar extends ej.Widget {
+ static fn: ProgressBar;
+ constructor(element: JQuery | Element, options?: ProgressBar.Model);
+ static Locale: any;
+ model: ProgressBar.Model;
+ defaults: ProgressBar.Model;
+
+ /** Destroy the progressbar widget
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** Disables the progressbar control
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Enables the progressbar control
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Returns the current progress value in percent.
+ * @returns {number}
+ */
+ getPercentage(): number;
+
+ /** Returns the current progress value
+ * @returns {number}
+ */
+ getValue(): number;
+ }
+ export namespace ProgressBar {
+
+ export interface Model {
+
+ /** Sets the root CSS class for ProgressBar theme, which is used customize.
+ * @Default {null}
+ */
+ cssClass?: string;
+
+ /** When this property sets to false, it disables the ProgressBar control
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Save current model value to browser cookies for state maintains. While refresh the progressBar control page retains the model value apply from browser cookies
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Sets the ProgressBar direction as right to left alignment.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Defines the height of the ProgressBar.
+ * @Default {null}
+ */
+ height?: number | string;
+
+ /** It allows to define the characteristics of the progressBar control. It will helps to extend the capability of an HTML element.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Sets the maximum value of the ProgressBar.
+ * @Default {100}
+ */
+ maxValue?: number;
+
+ /** Sets the minimum value of the ProgressBar.
+ * @Default {0}
+ */
+ minValue?: number;
+
+ /** Sets the ProgressBar value in percentage. The value should be in between 0 to 100.
+ * @Default {0}
+ */
+ percentage?: number;
+
+ /** Displays rounded corner borders on the progressBar control.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Sets the custom text for the ProgressBar. The text placed in the middle of the ProgressBar and it can be customizable using the class 'e-progress-text'.
+ * @Default {null}
+ */
+ text?: string;
+
+ /** Sets the ProgressBar value. The value should be in between min and max values.
+ * @Default {0}
+ */
+ value?: number;
+
+ /** Defines the width of the ProgressBar.
+ * @Default {null}
+ */
+ width?: number | string;
+
+ /** Event triggers when the progress value changed */
+ change?(e: ChangeEventArgs): void;
+
+ /** Event triggers when the process completes (at 100%) */
+ complete?(e: CompleteEventArgs): void;
+
+ /** Event triggers when the progressbar are created */
+ create?(e: CreateEventArgs): void;
+
+ /** Event triggers when the progressbar are destroyed */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Event triggers when the process starts (from 0%) */
+ start?(e: StartEventArgs): void;
+ }
+
+ export interface ChangeEventArgs {
+
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
+
+ /** returns the ProgressBar model
+ */
+ model?: ej.ProgressBar.Model;
+
+ /** returns the current progress percentage
+ */
+ percentage?: any;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the current progress value
+ */
+ value?: string;
+ }
+
+ export interface CompleteEventArgs {
+
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
+
+ /** returns the ProgressBar model
+ */
+ model?: ej.ProgressBar.Model;
+
+ /** returns the current progress percentage
+ */
+ percentage?: any;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the current progress value
+ */
+ value?: string;
+ }
+
+ export interface CreateEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the progressbar model
+ */
+ model?: ej.ProgressBar.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the progressbar model
+ */
+ model?: ej.ProgressBar.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface StartEventArgs {
+
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
+
+ /** returns the ProgressBar model
+ */
+ model?: ej.ProgressBar.Model;
+
+ /** returns the current progress percentage
+ */
+ percentage?: any;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the current progress value
+ */
+ value?: string;
+ }
+ }
+
+ class RadioButton extends ej.Widget {
+ static fn: RadioButton;
+ constructor(element: JQuery | Element, options?: RadioButton.Model);
+ static Locale: any;
+ model: RadioButton.Model;
+ defaults: RadioButton.Model;
+
+ /** To disable the RadioButton
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** To enable the RadioButton
+ * @returns {void}
+ */
+ enable(): void;
+ }
+ export namespace RadioButton {
+
+ export interface Model {
+
+ /** Specifies the check attribute of the Radio Button.
+ * @Default {false}
+ */
+ checked?: boolean;
+
+ /** Specify the CSS class to RadioButton to achieve custom theme.
+ */
+ cssClass?: string;
+
+ /** Specifies the RadioButton control state.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Specifies the enablePersistence property for RadioButton while initialization. The enablePersistence API save current model value to browser cookies for state maintains.
+ * While refreshing the radio button control page the model value apply from browser cookies.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Specify the Right to Left direction to RadioButton
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Specifies the HTML Attributes of the Checkbox
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Specifies the id attribute for the Radio Button while initialization.
+ * @Default {null}
+ */
+ id?: string;
+
+ /** Specify the idPrefix value to be added before the current id of the RadioButton.
+ * @Default {ej}
+ */
+ idPrefix?: string;
+
+ /** Specifies the name attribute for the Radio Button while initialization.
+ * @Default {Sets id as name if it is null}
+ */
+ name?: string;
+
+ /** Specifies the size of the RadioButton.
+ * @Default {small}
+ */
+ size?: ej.RadioButtonSize | string;
+
+ /** Specifies the text content for RadioButton.
+ */
+ text?: string;
+
+ /** Set the jQuery validation error message in radio button.
+ * @Default {null}
+ */
+ validationMessage?: any;
+
+ /** Set the jQuery validation rules in radio button.
+ * @Default {null}
+ */
+ validationRules?: any;
+
+ /** Specifies the value attribute of the Radio Button.
+ * @Default {null}
+ */
+ value?: string;
+
+ /** Fires before the RadioButton is going to changed its state successfully */
+ beforeChange?(e: BeforeChangeEventArgs): void;
+
+ /** Fires when the RadioButton state is changed successfully */
+ change?(e: ChangeEventArgs): void;
+
+ /** Fires when the RadioButton created successfully */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when the RadioButton destroyed successfully */
+ destroy?(e: DestroyEventArgs): void;
+ }
+
+ export interface BeforeChangeEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the RadioButton model
+ */
+ model?: ej.RadioButton.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns true if element is checked, otherwise returns false
+ */
+ isChecked?: boolean;
+
+ /** returns true if change event triggered by interaction, otherwise returns false
+ */
+ isInteraction?: boolean;
+ }
+
+ export interface ChangeEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the RadioButton model
+ */
+ model?: ej.RadioButton.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns true if element is checked, otherwise returns false
+ */
+ isChecked?: boolean;
+
+ /** returns true if change event triggered by interaction, otherwise returns false
+ */
+ isInteraction?: boolean;
+ }
+
+ export interface CreateEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the RadioButton model
+ */
+ model?: ej.RadioButton.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the RadioButton model
+ */
+ model?: ej.RadioButton.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+ }
+ enum RadioButtonSize {
+ //Shows small size radio button
+ Small,
+ //Shows medium size radio button
+ Medium,
+ }
+
+ class Rating extends ej.Widget {
+ static fn: Rating;
+ constructor(element: JQuery | Element, options?: Rating.Model);
+ static Locale: any;
+ model: Rating.Model;
+ defaults: Rating.Model;
+
+ /** Destroy the Rating widget all events bound will be unbind automatically and bring the control to pre-init state.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** To get the current value of rating control.
+ * @returns {number}
+ */
+ getValue(): number;
+
+ /** To hide the rating control.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** User can refresh the rating control to identify changes.
+ * @returns {void}
+ */
+ refresh(): void;
+
+ /** To reset the rating value.
+ * @returns {void}
+ */
+ reset(): void;
+
+ /** To set the rating value.
+ * @param {string|number} Specifies the rating value.
+ * @returns {void}
+ */
+ setValue(value: string | number): void;
+
+ /** To show the rating control
+ * @returns {void}
+ */
+ show(): void;
+ }
+ export namespace Rating {
+
+ export interface Model {
+
+ /** Enables the rating control with reset button.It can be used to reset the rating control value.
+ * @Default {true}
+ */
+ allowReset?: boolean;
+
+ /** Specify the CSS class to achieve custom theme.
+ */
+ cssClass?: string;
+
+ /** When this property is set to false, it disables the rating control.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Save current model value to browser cookies for state maintenance. While refresh the page Rating control values are retained.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Specifies the height of the Rating control wrapper.
+ * @Default {null}
+ */
+ height?: string;
+
+ /** Specifies the list of HTML attributes to be added to rating control.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Specifies the value to be increased while navigating between shapes(stars) in Rating control.
+ * @Default {1}
+ */
+ incrementStep?: number;
+
+ /** Allow to render the maximum number of Rating shape(star).
+ * @Default {5}
+ */
+ maxValue?: number;
+
+ /** Allow to render the minimum number of Rating shape(star).
+ * @Default {0}
+ */
+ minValue?: number;
+
+ /** Specifies the orientation of Rating control. See Orientation
+ * @Default {ej.Rating.Orientation.Horizontal}
+ */
+ orientation?: ej.Orientation | string;
+
+ /** Helps to provide more precise ratings.Rating control supports three precision modes - full, half, and exact. See Precision
+ * @Default {full}
+ */
+ precision?: ej.Rating.Precision | string;
+
+ /** Interaction with Rating control can be prevented by enabling this API.
+ * @Default {false}
+ */
+ readOnly?: boolean;
+
+ /** To specify the height of each shape in Rating control.
+ * @Default {23}
+ */
+ shapeHeight?: number;
+
+ /** To specify the width of each shape in Rating control.
+ * @Default {23}
+ */
+ shapeWidth?: number;
+
+ /** Enables the tooltip option.Currently selected value will be displayed in tooltip.
+ * @Default {true}
+ */
+ showTooltip?: boolean;
+
+ /** To specify the number of stars to be selected while rendering.
+ * @Default {1}
+ */
+ value?: number;
+
+ /** Specifies the width of the Rating control wrapper.
+ * @Default {null}
+ */
+ width?: string;
+
+ /** Fires when Rating value changes. */
+ change?(e: ChangeEventArgs): void;
+
+ /** Fires when Rating control is clicked successfully. */
+ click?(e: ClickEventArgs): void;
+
+ /** Fires when Rating control is created. */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when Rating control is destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Fires when mouse hover is removed from Rating control. */
+ mouseout?(e: MouseoutEventArgs): void;
+
+ /** Fires when mouse hovered over the Rating control. */
+ mouseover?(e: MouseoverEventArgs): void;
+ }
+
+ export interface ChangeEventArgs {
- /** returns the current value.
- */
- value?: number;
+ /** returns the current value.
+ */
+ value?: number;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the rating model
- */
- model?: ej.Rating.Model;
+ /** returns the rating model
+ */
+ model?: ej.Rating.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the mouse click event args values.
- */
- event?: any;
-}
+ /** returns the mouse click event args values.
+ */
+ event?: any;
+ }
-export interface ClickEventArgs {
+ export interface ClickEventArgs {
- /** returns the current value.
- */
- value?: number;
+ /** returns the current value.
+ */
+ value?: number;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the rating model
- */
- model?: ej.Rating.Model;
+ /** returns the rating model
+ */
+ model?: ej.Rating.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the mouse click event args values.
- */
- event?: any;
-}
+ /** returns the mouse click event args values.
+ */
+ event?: any;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the rating model
- */
- model?: ej.Rating.Model;
+ /** returns the rating model
+ */
+ model?: ej.Rating.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the rating model
- */
- model?: ej.Rating.Model;
+ /** returns the rating model
+ */
+ model?: ej.Rating.Model;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface MouseoutEventArgs {
+ export interface MouseoutEventArgs {
- /** returns the current value.
- */
- value?: number;
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the rating model
- */
- model?: ej.Rating.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the mouse click event args values.
- */
- event?: any;
-}
-
-export interface MouseoverEventArgs {
-
- /** returns the current value.
- */
- value?: number;
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the rating model
- */
- model?: ej.Rating.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the mouse click event args values.
- */
- event?: any;
-
- /** returns the current index value.
- */
- index?: any;
-}
-
-enum Precision {
-
- ///string
- Exact,
-
- ///string
- Full,
-
- ///string
- Half
-}
-
-}
-
-class Ribbon extends ej.Widget {
- static fn: Ribbon;
- constructor(element: JQuery | Element, options?: Ribbon.Model);
- static Locale: any;
- model: Ribbon.Model;
- defaults: Ribbon.Model;
-
- /** Adds contextual tab or contextual tab set dynamically in the ribbon control with contextual tabs object and index position.
- * When index is null, ribbon contextual tab or contextual tab set is added at the last index.
- * @param {any} contextual tab or contextual tab set object.
- * @param {number} index of the contextual tab or contextual tab set, this is optional.
- * @returns {void}
- */
- addContextualTabs(contextualTabSet: any, index?: number): void;
-
- /** Add new option to Backstage page.
- * @param {any} select the object to add the backstage item
- * @param {number} index to the backstage item this is optional.
- * @returns {void}
- */
- addBackStageItem(item: any, index?: number): void;
-
- /** Adds tab dynamically in the ribbon control with given name, tab group array and index position. When index is null, ribbon tab is added at the last index.
- * @param {string} ribbon tab display text.
- * @param {Array} groups to be displayed in ribbon tab .
- * @param {number} index of the ribbon tab,this is optional.
- * @returns {void}
- */
- addTab(tabText: string, ribbonGroups: any[], index?: number): void;
-
- /** Adds tab group dynamically in the ribbon control with given tab index, tab group object and group index position. When group index is null, ribbon group is added at the last index.
- * @param {number} ribbon tab index.
- * @param {any} group to be displayed in ribbon tab .
- * @param {number} index of the ribbon group,this is optional.
- * @returns {void}
- */
- addTabGroup(tabIndex: number, tabGroup: any, groupIndex?: number): void;
-
- /** Adds group content dynamically in the ribbon control with given tab index, group index, sub group index, content and content index position.
- * When content index is null, content is added at the last index.
- * @param {number} ribbon tab index.
- * @param {number} ribbon group index.
- * @param {number} sub group index in the ribbon group,
- * @param {any} content to be displayed in the ribbon group.
- * @param {number} ribbon content index .this is optional.
- * @returns {void}
- */
- addTabGroupContent(tabIndex: number, groupIndex: number, subGroupIndex: number, content: any, contentIndex?: number): void;
-
- /** Hides the ribbon backstage page.
- * @returns {void}
- */
- hideBackstage(): void;
-
- /** Collapses the ribbon tab content.
- * @returns {void}
- */
- collapse(): void;
-
- /** Destroys the ribbon widget. All the events bound using this._on are unbound automatically and the ribbon control is moved to pre-init state.
- * @returns {void}
- */
- destroy(): void;
-
- /** Expands the ribbon tab content.
- * @returns {void}
- */
- expand(): void;
-
- /** Gets text of the given index tab in the ribbon control.
- * @param {number} index of the tab item.
- * @returns {String}
- */
- getTabText(index: number): string;
-
- /** Hides the given text tab in the ribbon control.
- * @param {string} text of the tab item.
- * @returns {void}
- */
- hideTab(text: string): void;
-
- /** Checks whether the given text tab in the ribbon control is enabled or not.
- * @param {string} text of the tab item.
- * @returns {Boolean}
- */
- isEnable(text: string): boolean;
-
- /** Checks whether the given text tab in the ribbon control is visible or not.
- * @param {string} text of the tab item.
- * @returns {Boolean}
- */
- isVisible(text: string): boolean;
-
- /** Removes the given index tab item from the ribbon control.
- * @param {number} index of tab item.
- * @returns {void}
- */
- removeTab(index: number): void;
-
- /** Sets new text to the given text tab in the ribbon control.
- * @param {string} current text of the tab item.
- * @param {string} new text of the tab item.
- * @returns {void}
- */
- setTabText(tabText: string, newText: string): void;
-
- /** Displays the ribbon backstage page.
- * @returns {void}
- */
- showBackstage(): void;
-
- /** Displays the given text tab in the ribbon control.
- * @param {string} text of the tab item.
- * @returns {void}
- */
- showTab(text: string): void;
-
- /** To customize Group alone in the inside content.
- * @param {number} ribbon tab index.
- * @param {string} group id to be displayed in ribbon tab .
- * @param {any} contentGroup is used in the object
- * @returns {void}
- */
- updateGroup(tabIndex: number, groupId: string, contentGroup?: any): void;
-
- /** Update option in existing Backstage.
- * @param {number} index to the backstage item
- * @param {any} select the object to add the backstage item
- * @returns {void}
- */
- updateBackStageItem(index: number, item?: any): void;
-
- /** To customize whole content from Tab Group.
- * @param {number} ribbon tab index.
- * @param {string} ribbon group text.
- * @param {number} sub group index in the ribbon group,
- * @returns {void}
- */
- removeTabGroupContent(tabIndex: number, groupText: string, subGroupIndex?: number): void;
-
- /** Remove option from Backstage.
- * @param {number} index to the backstage item
- * @returns {void}
- */
- removeBackStageItem(index: number): void;
-}
-export namespace Ribbon {
-
-export interface Model {
-
- /** Enables the ribbon resize feature.allowResizing is a deprecated property of isResponsive.
- * @Default {false}
- */
- allowResizing?: boolean;
-
- /** When set to true, adapts the Ribbon layout to fit the screen size of devices on which it renders.
- * @Default {false}
- */
- isResponsive?: boolean;
-
- /** Specifies the height, width, enableRTL, showRoundedCorner,enabled,cssClass property to the controls in the ribbon commonly andit will work only when those properties
- * are not defined in buttonSettings and content defaults.
- * @Default {Object}
- */
- buttonDefaults?: any;
-
- /** Property to enable the ribbon quick access toolbar.
- * @Default {false}
- */
- showQAT?: boolean;
-
- /** Sets custom setting to the collapsible pin in the ribbon.
- * @Default {Object}
- */
- collapsePinSettings?: CollapsePinSettings;
-
- /** Set enableOnDemand as true to load ribbon tab and backstage contents while corresponding item clicked.
- * @Default {false}
- */
- enableOnDemand?: boolean;
-
- /** Set collapsible property as true to render ribbon in initially collapsed state.
- * @Default {false}
- */
- collapsible?: boolean;
-
- /** Align content in the ribbon control from right to left by setting the property as true.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Sets custom setting to the expandable pin in the ribbon.
- * @Default {Object}
- */
- expandPinSettings?: ExpandPinSettings;
-
- /** Specifies the application tab to contain application menu or backstage page in the ribbon control.
- * @Default {Object}
- */
- applicationTab?: ApplicationTab;
-
- /** Specifies the contextual tabs and tab set to the ribbon control with the background color and border color. Refer to the tabs section for adding tabs
- * into the contextual tab and contextual tab set.
- * @Default {Array}
- */
- contextualTabs?: ContextualTab[];
-
- /** Specifies the index or indexes to disable the given index tab or indexes tabs in the ribbon control.
- * @Default {0}
- */
- disabledItemIndex?: any[];
-
- /** Specifies the index or indexes to enable the given index tab or indexes tabs in the ribbon control.
- * @Default {null}
- */
- enabledItemIndex?: any[];
-
- /** Specifies the index of the ribbon tab to select the given index tab item in the ribbon control.
- * @Default {1}
- */
- selectedItemIndex?: number;
-
- /** Specifies the tabs and its groups. Also specifies the control details that has to be placed in the tab area in the ribbon control.
- * @Default {Array}
- */
- tabs?: Tab[];
-
- /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e. in a language and culture specific
- * to a particular country or region and it will need to use the user's preference.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Specifies the width to the ribbon control. You can set width in string or number format.
- * @Default {null}
- */
- width?: string|number;
+ /** returns the current value.
+ */
+ value?: number;
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the rating model
+ */
+ model?: ej.Rating.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the mouse click event args values.
+ */
+ event?: any;
+ }
+
+ export interface MouseoverEventArgs {
+
+ /** returns the current value.
+ */
+ value?: number;
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the rating model
+ */
+ model?: ej.Rating.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the mouse click event args values.
+ */
+ event?: any;
+
+ /** returns the current index value.
+ */
+ index?: any;
+ }
+
+ enum Precision {
+
+ ///string
+ Exact,
+
+ ///string
+ Full,
+
+ ///string
+ Half
+ }
+
+ }
+
+ class Ribbon extends ej.Widget {
+ static fn: Ribbon;
+ constructor(element: JQuery | Element, options?: Ribbon.Model);
+ static Locale: any;
+ model: Ribbon.Model;
+ defaults: Ribbon.Model;
+
+ /** Adds contextual tab or contextual tab set dynamically in the ribbon control with contextual tabs object and index position.
+ * When index is null, ribbon contextual tab or contextual tab set is added at the last index.
+ * @param {any} contextual tab or contextual tab set object.
+ * @param {number} index of the contextual tab or contextual tab set, this is optional.
+ * @returns {void}
+ */
+ addContextualTabs(contextualTabSet: any, index?: number): void;
+
+ /** Add new option to Backstage page.
+ * @param {any} select the object to add the backstage item
+ * @param {number} index to the backstage item this is optional.
+ * @returns {void}
+ */
+ addBackStageItem(item: any, index?: number): void;
+
+ /** Adds tab dynamically in the ribbon control with given name, tab group array and index position. When index is null, ribbon tab is added at the last index.
+ * @param {string} ribbon tab display text.
+ * @param {Array} groups to be displayed in ribbon tab .
+ * @param {number} index of the ribbon tab,this is optional.
+ * @returns {void}
+ */
+ addTab(tabText: string, ribbonGroups: any[], index?: number): void;
+
+ /** Adds tab group dynamically in the ribbon control with given tab index, tab group object and group index position. When group index is null, ribbon group is added at the last index.
+ * @param {number} ribbon tab index.
+ * @param {any} group to be displayed in ribbon tab .
+ * @param {number} index of the ribbon group,this is optional.
+ * @returns {void}
+ */
+ addTabGroup(tabIndex: number, tabGroup: any, groupIndex?: number): void;
+
+ /** Adds group content dynamically in the ribbon control with given tab index, group index, sub group index, content and content index position.
+ * When content index is null, content is added at the last index.
+ * @param {number} ribbon tab index.
+ * @param {number} ribbon group index.
+ * @param {any} content to be displayed in the ribbon group.
+ * @param {number} ribbon content index. This is optional. If the value is not given, then by default contentIndex will be considered as 0.
+ * @param {number} sub group index in the ribbon group. This is optional. If the value is not given, then by default contentIndex will be considered as 0.
+ * @returns {void}
+ */
+ addTabGroupContent(tabIndex: number, groupIndex: number, content: any, contentIndex?: number, subGroupIndex?: number): void;
+
+ /** Hides the ribbon backstage page.
+ * @returns {void}
+ */
+ hideBackstage(): void;
+
+ /** Collapses the ribbon tab content.
+ * @returns {void}
+ */
+ collapse(): void;
+
+ /** Destroys the ribbon widget. All the events bound using this._on are unbound automatically and the ribbon control is moved to pre-init state.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** Expands the ribbon tab content.
+ * @returns {void}
+ */
+ expand(): void;
+
+ /** Gets text of the given index tab in the ribbon control.
+ * @param {number} index of the tab item.
+ * @returns {String}
+ */
+ getTabText(index: number): string;
+
+ /** Hides the given text tab in the ribbon control.
+ * @param {string} text of the tab item.
+ * @returns {void}
+ */
+ hideTab(text: string): void;
+
+ /** Checks whether the given text tab in the ribbon control is enabled or not.
+ * @param {string} text of the tab item.
+ * @returns {Boolean}
+ */
+ isEnable(text: string): boolean;
+
+ /** Checks whether the given text tab in the ribbon control is visible or not.
+ * @param {string} text of the tab item.
+ * @returns {Boolean}
+ */
+ isVisible(text: string): boolean;
+
+ /** Removes the given index tab item from the ribbon control.
+ * @param {number} index of tab item.
+ * @returns {void}
+ */
+ removeTab(index: number): void;
+
+ /** Sets new text to the given text tab in the ribbon control.
+ * @param {string} current text of the tab item.
+ * @param {string} new text of the tab item.
+ * @returns {void}
+ */
+ setTabText(tabText: string, newText: string): void;
+
+ /** Displays the ribbon backstage page.
+ * @returns {void}
+ */
+ showBackstage(): void;
+
+ /** Displays the given text tab in the ribbon control.
+ * @param {string} text of the tab item.
+ * @returns {void}
+ */
+ showTab(text: string): void;
+
+ /** To customize Group alone in the inside content.
+ * @param {number} ribbon tab index.
+ * @param {string} group id to be displayed in ribbon tab .
+ * @param {any} contentGroup is used in the object
+ * @returns {void}
+ */
+ updateGroup(tabIndex: number, groupId: string, contentGroup?: any): void;
+
+ /** Update option in existing Backstage.
+ * @param {number} index to the backstage item
+ * @param {any} select the object to add the backstage item
+ * @returns {void}
+ */
+ updateBackStageItem(index: number, item?: any): void;
+
+ /** To customize whole content from Tab Group.
+ * @param {number} ribbon tab index.
+ * @param {string} ribbon group text.
+ * @param {number} ribbon content index. This is optional. If the value is not given, all content groups will be removed.
+ * @param {number} sub group index in the ribbon group. This is optional. If the value is not given, all content groups will be removed.
+ * @returns {void}
+ */
+ removeTabGroupContent(tabIndex: number, groupText: string, contentIndex?: number, subGroupIndex?: number): void;
+
+ /** Remove option from Backstage.
+ * @param {number} index to the backstage item
+ * @returns {void}
+ */
+ removeBackStageItem(index: number): void;
+ }
+ export namespace Ribbon {
+
+ export interface Model {
+
+ /** Enables the ribbon resize feature.allowResizing is a deprecated property of isResponsive.
+ * @Default {false}
+ */
+ allowResizing?: boolean;
+
+ /** When set to true, adapts the Ribbon layout to fit the screen size of devices on which it renders.
+ * @Default {false}
+ */
+ isResponsive?: boolean;
+
+ /** Specifies the height, width, enableRTL, showRoundedCorner,enabled,cssClass property to the controls in the ribbon commonly andit will work only when those properties
+ * are not defined in buttonSettings and content defaults.
+ * @Default {Object}
+ */
+ buttonDefaults?: any;
+
+ /** Property to enable the ribbon quick access toolbar.
+ * @Default {false}
+ */
+ showQAT?: boolean;
+
+ /** Sets custom setting to the collapsible pin in the ribbon.
+ * @Default {Object}
+ */
+ collapsePinSettings?: CollapsePinSettings;
+
+ /** Set enableOnDemand as true to load ribbon tab and backstage contents while corresponding item clicked.
+ * @Default {false}
+ */
+ enableOnDemand?: boolean;
+
+ /** Set collapsible property as true to render ribbon in initially collapsed state.
+ * @Default {false}
+ */
+ collapsible?: boolean;
+
+ /** Align content in the ribbon control from right to left by setting the property as true.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Sets custom setting to the expandable pin in the ribbon.
+ * @Default {Object}
+ */
+ expandPinSettings?: ExpandPinSettings;
+
+ /** Specifies the application tab to contain application menu or backstage page in the ribbon control.
+ * @Default {Object}
+ */
+ applicationTab?: ApplicationTab;
+
+ /** Specifies the contextual tabs and tab set to the ribbon control with the background color and border color. Refer to the tabs section for adding tabs
+ * into the contextual tab and contextual tab set.
+ * @Default {Array}
+ */
+ contextualTabs?: ContextualTab[];
+
+ /** Specifies the index or indexes to disable the given index tab or indexes tabs in the ribbon control.
+ * @Default {0}
+ */
+ disabledItemIndex?: any[];
+
+ /** Specifies the index or indexes to enable the given index tab or indexes tabs in the ribbon control.
+ * @Default {null}
+ */
+ enabledItemIndex?: any[];
+
+ /** Specifies the index of the ribbon tab to select the given index tab item in the ribbon control.
+ * @Default {1}
+ */
+ selectedItemIndex?: number;
+
+ /** Specifies the tabs and its groups. Also specifies the control details that has to be placed in the tab area in the ribbon control.
+ * @Default {Array}
+ */
+ tabs?: Tab[];
+
+ /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e. in a language and culture specific
+ * to a particular country or region and it will need to use the user's preference.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Specifies the width to the ribbon control. You can set width in string or number format.
+ * @Default {null}
+ */
+ width?: string | number;
- /** Triggered before the ribbon tab item is removed. */
- beforeTabRemove?(e: BeforeTabRemoveEventArgs): void;
-
- /** Triggered before the ribbon control is created. */
- create?(e: CreateEventArgs): void;
+ /** Triggered before the ribbon tab item is removed. */
+ beforeTabRemove?(e: BeforeTabRemoveEventArgs): void;
+
+ /** Triggered before the ribbon control is created. */
+ create?(e: CreateEventArgs): void;
- /** Triggered before the ribbon control is destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ /** Triggered before the ribbon control is destroyed. */
+ destroy?(e: DestroyEventArgs): void;
- /** Triggered when the control in the group is clicked successfully. */
- groupClick?(e: GroupClickEventArgs): void;
+ /** Triggered when the control in the group is clicked successfully. */
+ groupClick?(e: GroupClickEventArgs): void;
- /** Triggered when the group expander in the group is clicked successfully. */
- groupExpand?(e: GroupExpandEventArgs): void;
+ /** Triggered when the group expander in the group is clicked successfully. */
+ groupExpand?(e: GroupExpandEventArgs): void;
- /** Triggered when an item in the Gallery control is clicked successfully. */
- galleryItemClick?(e: GalleryItemClickEventArgs): void;
+ /** Triggered when an item in the Gallery control is clicked successfully. */
+ galleryItemClick?(e: GalleryItemClickEventArgs): void;
- /** Triggered when a tab or button in the backstage page is clicked successfully. */
- backstageItemClick?(e: BackstageItemClickEventArgs): void;
+ /** Triggered when a tab or button in the backstage page is clicked successfully. */
+ backstageItemClick?(e: BackstageItemClickEventArgs): void;
- /** Triggered when the ribbon control is collapsed. */
- collapse?(e: CollapseEventArgs): void;
+ /** Triggered when the ribbon control is collapsed. */
+ collapse?(e: CollapseEventArgs): void;
- /** Triggered when the ribbon control is expanded. */
- expand?(e: ExpandEventArgs): void;
+ /** Triggered when the ribbon control is expanded. */
+ expand?(e: ExpandEventArgs): void;
- /** Triggered before the ribbon control is load. */
- load?(e: LoadEventArgs): void;
+ /** Triggered before the ribbon control is load. */
+ load?(e: LoadEventArgs): void;
- /** Triggered after adding the new ribbon tab item. */
- tabAdd?(e: TabAddEventArgs): void;
+ /** Triggered after adding the new ribbon tab item. */
+ tabAdd?(e: TabAddEventArgs): void;
- /** Triggered when tab is clicked successfully in the ribbon control. */
- tabClick?(e: TabClickEventArgs): void;
+ /** Triggered when tab is clicked successfully in the ribbon control. */
+ tabClick?(e: TabClickEventArgs): void;
- /** Triggered before the ribbon tab is created. */
- tabCreate?(e: TabCreateEventArgs): void;
+ /** Triggered before the ribbon tab is created. */
+ tabCreate?(e: TabCreateEventArgs): void;
- /** Triggered after the tab item is removed from the ribbon control. */
- tabRemove?(e: TabRemoveEventArgs): void;
+ /** Triggered after the tab item is removed from the ribbon control. */
+ tabRemove?(e: TabRemoveEventArgs): void;
- /** Triggered after the ribbon tab item is selected in the ribbon control. */
- tabSelect?(e: TabSelectEventArgs): void;
+ /** Triggered after the ribbon tab item is selected in the ribbon control. */
+ tabSelect?(e: TabSelectEventArgs): void;
- /** Triggered when the expand/collapse button is clicked successfully . */
- toggleButtonClick?(e: ToggleButtonClickEventArgs): void;
+ /** Triggered when the expand/collapse button is clicked successfully . */
+ toggleButtonClick?(e: ToggleButtonClickEventArgs): void;
- /** Triggered when the QAT menu item is clicked successfully . */
- qatMenuItemClick?(e: QatMenuItemClickEventArgs): void;
-}
+ /** Triggered when the QAT menu item is clicked successfully . */
+ qatMenuItemClick?(e: QatMenuItemClickEventArgs): void;
+ }
-export interface BeforeTabRemoveEventArgs {
+ export interface BeforeTabRemoveEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns current tab item index in the ribbon control.
- */
- index?: number;
-}
+ /** returns current tab item index in the ribbon control.
+ */
+ index?: number;
+ }
-export interface CreateEventArgs {
+ export interface CreateEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface DestroyEventArgs {
+ export interface DestroyEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns current ribbon tab item index
- */
- deleteIndex?: number;
-}
+ /** returns current ribbon tab item index
+ */
+ deleteIndex?: number;
+ }
-export interface GroupClickEventArgs {
+ export interface GroupClickEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the control clicked in the group.
- */
- target?: number;
-}
+ /** returns the control clicked in the group.
+ */
+ target?: number;
+ }
-export interface GroupExpandEventArgs {
+ export interface GroupExpandEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the clicked group expander.
- */
- target?: number;
-}
+ /** returns the clicked group expander.
+ */
+ target?: number;
+ }
-export interface GalleryItemClickEventArgs {
+ export interface GalleryItemClickEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the gallery model.
- */
- galleryModel?: any;
+ /** returns the gallery model.
+ */
+ galleryModel?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the item clicked in the gallery.
- */
- target?: number;
-}
+ /** returns the item clicked in the gallery.
+ */
+ target?: number;
+ }
-export interface BackstageItemClickEventArgs {
+ export interface BackstageItemClickEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the item clicked in the gallery.
- */
- target?: number;
+ /** returns the item clicked in the gallery.
+ */
+ target?: number;
- /** returns the id of the target item.
- */
- id?: string;
+ /** returns the id of the target item.
+ */
+ id?: string;
- /** returns the text of the target item.
- */
- text?: string;
-}
+ /** returns the text of the target item.
+ */
+ text?: string;
+ }
-export interface CollapseEventArgs {
+ export interface CollapseEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface ExpandEventArgs {
+ export interface ExpandEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface LoadEventArgs {
+ export interface LoadEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface TabAddEventArgs {
+ export interface TabAddEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns new added tab header.
- */
- tabHeader?: any;
+ /** returns new added tab header.
+ */
+ tabHeader?: any;
- /** returns new added tab content panel.
- */
- tabContent?: any;
-}
+ /** returns new added tab content panel.
+ */
+ tabContent?: any;
+ }
-export interface TabClickEventArgs {
+ export interface TabClickEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns previous active tab header.
- */
- prevActiveHeader?: any;
+ /** returns previous active tab header.
+ */
+ prevActiveHeader?: any;
- /** returns previous active index.
- */
- prevActiveIndex?: number;
+ /** returns previous active index.
+ */
+ prevActiveIndex?: number;
- /** returns current active tab header .
- */
- activeHeader?: any;
+ /** returns current active tab header .
+ */
+ activeHeader?: any;
- /** returns current active index.
- */
- activeIndex?: number;
-}
+ /** returns current active index.
+ */
+ activeIndex?: number;
+ }
-export interface TabCreateEventArgs {
+ export interface TabCreateEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns current ribbon tab item index
- */
- deleteIndex?: number;
-}
+ /** returns current ribbon tab item index
+ */
+ deleteIndex?: number;
+ }
-export interface TabRemoveEventArgs {
+ export interface TabRemoveEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the removed index.
- */
- removedIndex?: number;
-}
+ /** returns the removed index.
+ */
+ removedIndex?: number;
+ }
-export interface TabSelectEventArgs {
+ export interface TabSelectEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns previous active tab header.
- */
- prevActiveHeader?: any;
+ /** returns previous active tab header.
+ */
+ prevActiveHeader?: any;
- /** returns previous active index.
- */
- prevActiveIndex?: number;
+ /** returns previous active index.
+ */
+ prevActiveIndex?: number;
- /** returns current active tab header .
- */
- activeHeader?: any;
+ /** returns current active tab header .
+ */
+ activeHeader?: any;
- /** returns current active index.
- */
- activeIndex?: number;
-}
+ /** returns current active index.
+ */
+ activeIndex?: number;
+ }
-export interface ToggleButtonClickEventArgs {
+ export interface ToggleButtonClickEventArgs {
- /** Set to true when the event has to be canceled, else false.
- */
- cancel?: boolean;
+ /** Set to true when the event has to be canceled, else false.
+ */
+ cancel?: boolean;
- /** returns the ribbon model.
- */
- model?: any;
+ /** returns the ribbon model.
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
-
- /** returns the expand/collapse button.
- */
- target?: number;
-}
-
-export interface QatMenuItemClickEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the ribbon model.
- */
- model?: any;
-
- /** returns the name of the event.
- */
- type?: string;
-
- /** returns the clicked menu item text.
- */
- text?: string;
-}
-
-export interface CollapsePinSettings {
-
- /** Sets tooltip for the collapse pin .
- * @Default {null}
- */
- toolTip?: string;
-
- /** Specifies the custom tooltip for collapse pin.Refer to ejRibbon#tabs->groups->content->groups->customToolTip for its inner properties.
- * @Default {Object}
- */
- customToolTip?: any;
-}
-
-export interface ExpandPinSettings {
-
- /** Sets tooltip for the expand pin.
- * @Default {null}
- */
- toolTip?: string;
-
- /** Specifies the custom tooltip for expand pin.Refer to ejRibbon#tabs->groups->content->groups->customToolTip for its inner properties.
- * @Default {Object}
- */
- customToolTip?: any;
-}
-
-export interface ApplicationTabBackstageSettingsPage {
-
- /** Specifies the id for ribbon backstage page's tab and button elements.
- * @Default {null}
- */
- id?: string;
-
- /** Specifies the text for ribbon backstage page's tab header and button elements.
- * @Default {null}
- */
- text?: string;
-
- /** Specifies the type for ribbon backstage page's contents. Set "ej.Ribbon.BackStageItemType.Tab" to render the tab or "
- * ej.Ribbon.BackStageItemType.Button" to render the button.
- * @Default {ej.Ribbon.ItemType.Tab}
- */
- itemType?: ej.Ribbon.ItemType|string;
-
- /** Specifies the id of HTML elements like div,ul, etc., as ribbon backstage page's tab content.
- * @Default {null}
- */
- contentID?: string;
-
- /** Specifies the separator between backstage page's tab and button elements.
- * @Default {false}
- */
- enableSeparator?: boolean;
-}
-
-export interface ApplicationTabBackstageSettings {
-
- /** Specifies the display text of application tab.
- * @Default {null}
- */
- text?: string;
-
- /** Specifies the height of ribbon backstage page.
- * @Default {null}
- */
- height?: string|number;
-
- /** Specifies the width of ribbon backstage page.
- * @Default {null}
- */
- width?: string|number;
-
- /** Specifies the ribbon backstage page with its tab and button elements.
- * @Default {Array}
- */
- pages?: ApplicationTabBackstageSettingsPage[];
-
- /** Specifies the width of backstage page header that contains tabs and buttons.
- * @Default {null}
- */
- headerWidth?: string|number;
-}
-
-export interface ApplicationTab {
-
- /** Specifies the ribbon backstage page items.
- * @Default {Object}
- */
- backstageSettings?: ApplicationTabBackstageSettings;
-
- /** Specifies the ID of ul list to create application menu in the ribbon control.
- * @Default {null}
- */
- menuItemID?: string;
-
- /** Specifies the menu members, events by using the menu settings for the menu in the application tab.
- * @Default {Object}
- */
- menuSettings?: any;
-
- /** Specifies the application menu or backstage page. Specify the type of application tab as "ej.Ribbon.ApplicationTabType.Menu" to render the application menu or
- * "ej.Ribbon.ApplicationTabType.Backstage" to render backstage page in the ribbon control.
- * @Default {ej.Ribbon.ApplicationTabType.Menu}
- */
- type?: ej.Ribbon.ApplicationTabType|string;
-}
-
-export interface ContextualTab {
-
- /** Specifies the backgroundColor of the contextual tabs and tab set in the ribbon control.
- * @Default {null}
- */
- backgroundColor?: string;
-
- /** Specifies the borderColor of the contextual tabs and tab set in the ribbon control.
- * @Default {null}
- */
- borderColor?: string;
-
- /** Specifies the tabs to present in the contextual tabs and tab set. Refer to the tabs section for adding tabs into the contextual tabs and tab set.
- * @Default {Array}
- */
- tabs?: any[];
-}
-
-export interface TabsGroupsContentDefaults {
-
- /** Specifies the controls height such as Syncfusion button,split button,dropdown list,toggle button in the subgroup of the ribbon tab.
- * @Default {null}
- */
- height?: string|number;
-
- /** Specifies the controls width such as Syncfusion button,split button,dropdown list,toggle button in the subgroup of the ribbon tab.
- * @Default {null}
- */
- width?: string|number;
-
- /** Specifies the controls type such as Syncfusion button,split button,dropdown list,toggle button in the subgroup of the ribbon tab.
- * @Default {ej.Ribbon.Type.Button}
- */
- type?: string;
-
- /** Specifies the controls size such as Syncfusion button,split button,dropdown list,toggle button in the subgroup of the ribbon tab.
- * @Default {false}
- */
- isBig?: boolean;
-}
-
-export interface TabsGroupsContentGroupsCustomGalleryItem {
-
- /** Specifies the Syncfusion button members, events by using buttonSettings.
- * @Default {Object}
- */
- buttonSettings?: any;
-
- /** Specifies the type as ej.Ribbon.CustomItemType.Menu or ej.Ribbon.CustomItemType.Button to render Syncfusion button and menu.
- * @Default {ej.Ribbon.CustomItemType.Button}
- */
- customItemType?: ej.Ribbon.CustomItemType|string;
-
- /** Specifies the custom tooltip for gallery extra item's button. Refer to ejRibbon#tabs->groups->content->groups->customToolTip for its inner properties.
- * @Default {Object}
- */
- customToolTip?: any;
-
- /** Specifies the UL list id to render menu as gallery extra item.
- * @Default {null}
- */
- menuId?: string;
-
- /** Specifies the Syncfusion menu members, events by using menuSettings.
- * @Default {Object}
- */
- menuSettings?: any;
-
- /** Specifies the text for gallery extra item's button.
- * @Default {null}
- */
- text?: string;
-
- /** Specifies the tooltip for gallery extra item's button.
- * @Default {null}
- */
- toolTip?: string;
-}
-
-export interface TabsGroupsContentGroupsCustomToolTip {
-
- /** Sets content to the custom tooltip. Text and HTML support are provided for content.
- * @Default {null}
- */
- content?: string;
-
- /** Sets icon to the custom tooltip content.
- * @Default {null}
- */
- prefixIcon?: string;
-
- /** Sets title to the custom tooltip. Text and HTML support are provided for title and the title is in bold for text format.
- * @Default {null}
- */
- title?: string;
-}
-
-export interface TabsGroupsContentGroupsGalleryItem {
-
- /** Specifies the Syncfusion button members, events by using buttonSettings.
- * @Default {Object}
- */
- buttonSettings?: any;
-
- /** Specifies the custom tooltip for gallery content. Refer to ejRibbon#tabs->groups->content->groups->customToolTip for its inner properties.
- * @Default {Object}
- */
- customToolTip?: any;
-
- /** Sets text for the gallery content.
- * @Default {null}
- */
- text?: string;
-
- /** Sets tooltip for the gallery content.
- * @Default {null}
- */
- toolTip?: string;
-}
-
-export interface TabsGroupsContentGroup {
-
- /** When isMobileOnly is true,its shows in mobile toolbar.isResponsive should be true for using this property.
- * @Default {false}
- */
- isMobileOnly?: boolean;
-
- /** Specifies the Syncfusion button members, events by using this buttonSettings.
- * @Default {Object}
- */
- buttonSettings?: any;
-
- /** It is used to set the count of gallery contents in a row.
- * @Default {null}
- */
- columns?: number;
-
- /** Specifies the custom items such as div, table, controls as custom controls with the type "ej.Ribbon.Type.Custom" in the groups.
- * @Default {null}
- */
- contentID?: string;
-
- /** Specifies the CSS class property to apply styles to the button, split, dropdown controls in the groups.
- * @Default {null}
- */
- cssClass?: string;
-
- /** Specifies the Syncfusion button and menu as gallery extra items.
- * @Default {Array}
- */
- customGalleryItems?: TabsGroupsContentGroupsCustomGalleryItem[];
-
- /** Provides custom tooltip for button, split button, dropdown list, toggle button, custom controls in the sub groups. Text and HTML support are also provided for title and content.
- * @Default {Object}
- */
- customToolTip?: TabsGroupsContentGroupsCustomToolTip;
-
- /** Specifies the Syncfusion dropdown list members, events by using this dropdownSettings.
- * @Default {Object}
- */
- dropdownSettings?: any;
-
- /** Specifies the separator to the control that is in row type group. The separator separates the control from the next control in the group. Set "true" to enable the separator.
- * @Default {false}
- */
- enableSeparator?: boolean;
-
- /** Sets the count of gallery contents in a row, when the gallery is in expanded state.
- * @Default {null}
- */
- expandedColumns?: number;
-
- /** Defines each gallery content.
- * @Default {Array}
- */
- galleryItems?: TabsGroupsContentGroupsGalleryItem[];
-
- /** Specifies the Id for button, split button, dropdown list, toggle button, gallery, custom controls in the sub groups.
- * @Default {null}
- */
- id?: string;
-
- /** Specifies the size for button, split button controls. Set "true" for big size and "false" for small size.
- * @Default {null}
- */
- isBig?: boolean;
-
- /** Sets the height of each gallery content.
- * @Default {null}
- */
- itemHeight?: string|number;
-
- /** Sets the width of each gallery content.
- * @Default {null}
- */
- itemWidth?: string|number;
-
- /** Specifies the Syncfusion split button members, events by using this splitButtonSettings.
- * @Default {Object}
- */
- splitButtonSettings?: any;
-
- /** Specifies the text for button, split button, toggle button controls in the sub groups.
- * @Default {null}
- */
- text?: string;
-
- /** Specifies the Syncfusion toggle button members, events by using toggleButtonSettings.
- * @Default {Object}
- */
- toggleButtonSettings?: any;
-
- /** Specifies the tooltip for button, split button, dropdown list, toggle button, custom controls in the sub groups.
- * @Default {null}
- */
- toolTip?: string;
-
- /** To add,show and hide controls in Quick Access toolbar.
- * @Default {ej.Ribbon.QuickAccessMode.None}
- */
- quickAccessMode?: ej.Ribbon.QuickAccessMode|string;
-
- /** Specifies the type as "ej.Ribbon.Type.Button" or "ej.Ribbon.Type.SplitButton" or "ej.Ribbon.Type.DropDownList" or "ej.Ribbon.Type.ToggleButton"
- * or "ej.Ribbon.Type.Custom" or "ej.Ribbon.Type.Gallery" to render button, split, dropdown, toggle button, gallery, custom controls.
- * @Default {ej.Ribbon.Type.Button}
- */
- type?: ej.Ribbon.Type|string;
-}
-
-export interface TabsGroupsContent {
-
- /** Specifies the height, width, type, isBig property to the controls in the group commonly.
- * @Default {Object}
- */
- defaults?: TabsGroupsContentDefaults;
-
- /** Specifies the controls such as Syncfusion button, split button, dropdown list, toggle button, gallery, custom controls in the subgroup of the ribbon tab .
- * @Default {Array}
- */
- groups?: TabsGroupsContentGroup[];
-}
-
-export interface TabsGroupsGroupExpanderSettings {
-
- /** Sets tooltip for the group expander of the group.
- * @Default {null}
- */
- toolTip?: string;
-
- /** Specifies the custom tooltip for group expander.Refer to ejRibbon#tabs->groups->content->groups->customToolTip for its inner properties.
- * @Default {Object}
- */
- customToolTip?: any;
-}
-
-export interface TabsGroup {
+ /** returns the name of the event.
+ */
+ type?: string;
+
+ /** returns the expand/collapse button.
+ */
+ target?: number;
+ }
+
+ export interface QatMenuItemClickEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the ribbon model.
+ */
+ model?: any;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+
+ /** returns the clicked menu item text.
+ */
+ text?: string;
+ }
+
+ export interface CollapsePinSettings {
+
+ /** Sets tooltip for the collapse pin .
+ * @Default {null}
+ */
+ toolTip?: string;
+
+ /** Specifies the custom tooltip for collapse pin.Refer to ejRibbon#tabs->groups->content->groups->customToolTip for its inner properties.
+ * @Default {Object}
+ */
+ customToolTip?: any;
+ }
+
+ export interface ExpandPinSettings {
+
+ /** Sets tooltip for the expand pin.
+ * @Default {null}
+ */
+ toolTip?: string;
+
+ /** Specifies the custom tooltip for expand pin.Refer to ejRibbon#tabs->groups->content->groups->customToolTip for its inner properties.
+ * @Default {Object}
+ */
+ customToolTip?: any;
+ }
+
+ export interface ApplicationTabBackstageSettingsPage {
+
+ /** Specifies the id for ribbon backstage page's tab and button elements.
+ * @Default {null}
+ */
+ id?: string;
+
+ /** Specifies the text for ribbon backstage page's tab header and button elements.
+ * @Default {null}
+ */
+ text?: string;
+
+ /** Specifies the type for ribbon backstage page's contents. Set "ej.Ribbon.BackStageItemType.Tab" to render the tab or "
+ * ej.Ribbon.BackStageItemType.Button" to render the button.
+ * @Default {ej.Ribbon.ItemType.Tab}
+ */
+ itemType?: ej.Ribbon.ItemType | string;
+
+ /** Specifies the id of HTML elements like div,ul, etc., as ribbon backstage page's tab content.
+ * @Default {null}
+ */
+ contentID?: string;
+
+ /** Specifies the separator between backstage page's tab and button elements.
+ * @Default {false}
+ */
+ enableSeparator?: boolean;
+ }
+
+ export interface ApplicationTabBackstageSettings {
+
+ /** Specifies the display text of application tab.
+ * @Default {null}
+ */
+ text?: string;
+
+ /** Specifies the height of ribbon backstage page.
+ * @Default {null}
+ */
+ height?: string | number;
+
+ /** Specifies the width of ribbon backstage page.
+ * @Default {null}
+ */
+ width?: string | number;
+
+ /** Specifies the ribbon backstage page with its tab and button elements.
+ * @Default {Array}
+ */
+ pages?: ApplicationTabBackstageSettingsPage[];
+
+ /** Specifies the width of backstage page header that contains tabs and buttons.
+ * @Default {null}
+ */
+ headerWidth?: string | number;
+ }
+
+ export interface ApplicationTab {
+
+ /** Specifies the ribbon backstage page items.
+ * @Default {Object}
+ */
+ backstageSettings?: ApplicationTabBackstageSettings;
+
+ /** Specifies the ID of ul list to create application menu in the ribbon control.
+ * @Default {null}
+ */
+ menuItemID?: string;
+
+ /** Specifies the menu members, events by using the menu settings for the menu in the application tab.
+ * @Default {Object}
+ */
+ menuSettings?: any;
+
+ /** Specifies the application menu or backstage page. Specify the type of application tab as "ej.Ribbon.ApplicationTabType.Menu" to render the application menu or
+ * "ej.Ribbon.ApplicationTabType.Backstage" to render backstage page in the ribbon control.
+ * @Default {ej.Ribbon.ApplicationTabType.Menu}
+ */
+ type?: ej.Ribbon.ApplicationTabType | string;
+ }
+
+ export interface ContextualTab {
+
+ /** Specifies the backgroundColor of the contextual tabs and tab set in the ribbon control.
+ * @Default {null}
+ */
+ backgroundColor?: string;
+
+ /** Specifies the borderColor of the contextual tabs and tab set in the ribbon control.
+ * @Default {null}
+ */
+ borderColor?: string;
+
+ /** Specifies the tabs to present in the contextual tabs and tab set. Refer to the tabs section for adding tabs into the contextual tabs and tab set.
+ * @Default {Array}
+ */
+ tabs?: any[];
+ }
+
+ export interface TabsGroupsContentDefaults {
+
+ /** Specifies the controls height such as Syncfusion button,split button,dropdown list,toggle button in the subgroup of the ribbon tab.
+ * @Default {null}
+ */
+ height?: string | number;
+
+ /** Specifies the controls width such as Syncfusion button,split button,dropdown list,toggle button in the subgroup of the ribbon tab.
+ * @Default {null}
+ */
+ width?: string | number;
+
+ /** Specifies the controls type such as Syncfusion button,split button,dropdown list,toggle button in the subgroup of the ribbon tab.
+ * @Default {ej.Ribbon.Type.Button}
+ */
+ type?: string;
+
+ /** Specifies the controls size such as Syncfusion button,split button,dropdown list,toggle button in the subgroup of the ribbon tab.
+ * @Default {false}
+ */
+ isBig?: boolean;
+ }
+
+ export interface TabsGroupsContentGroupsCustomGalleryItem {
+
+ /** Specifies the Syncfusion button members, events by using buttonSettings.
+ * @Default {Object}
+ */
+ buttonSettings?: any;
+
+ /** Specifies the type as ej.Ribbon.CustomItemType.Menu or ej.Ribbon.CustomItemType.Button to render Syncfusion button and menu.
+ * @Default {ej.Ribbon.CustomItemType.Button}
+ */
+ customItemType?: ej.Ribbon.CustomItemType | string;
+
+ /** Specifies the custom tooltip for gallery extra item's button. Refer to ejRibbon#tabs->groups->content->groups->customToolTip for its inner properties.
+ * @Default {Object}
+ */
+ customToolTip?: any;
+
+ /** Specifies the UL list id to render menu as gallery extra item.
+ * @Default {null}
+ */
+ menuId?: string;
+
+ /** Specifies the Syncfusion menu members, events by using menuSettings.
+ * @Default {Object}
+ */
+ menuSettings?: any;
+
+ /** Specifies the text for gallery extra item's button.
+ * @Default {null}
+ */
+ text?: string;
+
+ /** Specifies the tooltip for gallery extra item's button.
+ * @Default {null}
+ */
+ toolTip?: string;
+ }
+
+ export interface TabsGroupsContentGroupsCustomToolTip {
+
+ /** Sets content to the custom tooltip. Text and HTML support are provided for content.
+ * @Default {null}
+ */
+ content?: string;
+
+ /** Sets icon to the custom tooltip content.
+ * @Default {null}
+ */
+ prefixIcon?: string;
+
+ /** Sets title to the custom tooltip. Text and HTML support are provided for title and the title is in bold for text format.
+ * @Default {null}
+ */
+ title?: string;
+ }
+
+ export interface TabsGroupsContentGroupsGalleryItem {
+
+ /** Specifies the Syncfusion button members, events by using buttonSettings.
+ * @Default {Object}
+ */
+ buttonSettings?: any;
+
+ /** Specifies the custom tooltip for gallery content. Refer to ejRibbon#tabs->groups->content->groups->customToolTip for its inner properties.
+ * @Default {Object}
+ */
+ customToolTip?: any;
+
+ /** Sets text for the gallery content.
+ * @Default {null}
+ */
+ text?: string;
+
+ /** Sets tooltip for the gallery content.
+ * @Default {null}
+ */
+ toolTip?: string;
+ }
+
+ export interface TabsGroupsContentGroup {
+
+ /** When isMobileOnly is true,its shows in mobile toolbar.isResponsive should be true for using this property.
+ * @Default {false}
+ */
+ isMobileOnly?: boolean;
+
+ /** Specifies the Syncfusion button members, events by using this buttonSettings.
+ * @Default {Object}
+ */
+ buttonSettings?: any;
+
+ /** It is used to set the count of gallery contents in a row.
+ * @Default {null}
+ */
+ columns?: number;
+
+ /** Specifies the custom items such as div, table, controls as custom controls with the type "ej.Ribbon.Type.Custom" in the groups.
+ * @Default {null}
+ */
+ contentID?: string;
+
+ /** Specifies the CSS class property to apply styles to the button, split, dropdown controls in the groups.
+ * @Default {null}
+ */
+ cssClass?: string;
+
+ /** Specifies the Syncfusion button and menu as gallery extra items.
+ * @Default {Array}
+ */
+ customGalleryItems?: TabsGroupsContentGroupsCustomGalleryItem[];
+
+ /** Provides custom tooltip for button, split button, dropdown list, toggle button, custom controls in the sub groups. Text and HTML support are also provided for title and content.
+ * @Default {Object}
+ */
+ customToolTip?: TabsGroupsContentGroupsCustomToolTip;
+
+ /** Specifies the Syncfusion dropdown list members, events by using this dropdownSettings.
+ * @Default {Object}
+ */
+ dropdownSettings?: any;
+
+ /** Specifies the separator to the control that is in row type group. The separator separates the control from the next control in the group. Set "true" to enable the separator.
+ * @Default {false}
+ */
+ enableSeparator?: boolean;
+
+ /** Sets the count of gallery contents in a row, when the gallery is in expanded state.
+ * @Default {null}
+ */
+ expandedColumns?: number;
+
+ /** Defines each gallery content.
+ * @Default {Array}
+ */
+ galleryItems?: TabsGroupsContentGroupsGalleryItem[];
+
+ /** Specifies the Id for button, split button, dropdown list, toggle button, gallery, custom controls in the sub groups.
+ * @Default {null}
+ */
+ id?: string;
+
+ /** Specifies the size for button, split button controls. Set "true" for big size and "false" for small size.
+ * @Default {null}
+ */
+ isBig?: boolean;
+
+ /** Sets the height of each gallery content.
+ * @Default {null}
+ */
+ itemHeight?: string | number;
+
+ /** Sets the width of each gallery content.
+ * @Default {null}
+ */
+ itemWidth?: string | number;
+
+ /** Specifies the Syncfusion split button members, events by using this splitButtonSettings.
+ * @Default {Object}
+ */
+ splitButtonSettings?: any;
+
+ /** Specifies the text for button, split button, toggle button controls in the sub groups.
+ * @Default {null}
+ */
+ text?: string;
+
+ /** Specifies the Syncfusion toggle button members, events by using toggleButtonSettings.
+ * @Default {Object}
+ */
+ toggleButtonSettings?: any;
+
+ /** Specifies the tooltip for button, split button, dropdown list, toggle button, custom controls in the sub groups.
+ * @Default {null}
+ */
+ toolTip?: string;
+
+ /** To add,show and hide controls in Quick Access toolbar.
+ * @Default {ej.Ribbon.QuickAccessMode.None}
+ */
+ quickAccessMode?: ej.Ribbon.QuickAccessMode | string;
+
+ /** Specifies the type as "ej.Ribbon.Type.Button" or "ej.Ribbon.Type.SplitButton" or "ej.Ribbon.Type.DropDownList" or "ej.Ribbon.Type.ToggleButton"
+ * or "ej.Ribbon.Type.Custom" or "ej.Ribbon.Type.Gallery" to render button, split, dropdown, toggle button, gallery, custom controls.
+ * @Default {ej.Ribbon.Type.Button}
+ */
+ type?: ej.Ribbon.Type | string;
+ }
+
+ export interface TabsGroupsContent {
+
+ /** Specifies the height, width, type, isBig property to the controls in the group commonly.
+ * @Default {Object}
+ */
+ defaults?: TabsGroupsContentDefaults;
+
+ /** Specifies the controls such as Syncfusion button, split button, dropdown list, toggle button, gallery, custom controls in the subgroup of the ribbon tab .
+ * @Default {Array}
+ */
+ groups?: TabsGroupsContentGroup[];
+ }
+
+ export interface TabsGroupsGroupExpanderSettings {
+
+ /** Sets tooltip for the group expander of the group.
+ * @Default {null}
+ */
+ toolTip?: string;
+
+ /** Specifies the custom tooltip for group expander.Refer to ejRibbon#tabs->groups->content->groups->customToolTip for its inner properties.
+ * @Default {Object}
+ */
+ customToolTip?: any;
+ }
+
+ export interface TabsGroup {
- /** Specifies the alignment of controls in the groups in 'row' type or 'column' type. Value for row type is "ej.Ribbon.AlignType.Rows"
- * and for column type is "ej.Ribbon.alignType.columns".
- * @Default {ej.Ribbon.AlignType.Rows}
- */
- alignType?: ej.Ribbon.AlignType|string;
+ /** Specifies the alignment of controls in the groups in 'row' type or 'column' type. Value for row type is "ej.Ribbon.AlignType.Rows"
+ * and for column type is "ej.Ribbon.alignType.columns".
+ * @Default {ej.Ribbon.AlignType.Rows}
+ */
+ alignType?: ej.Ribbon.AlignType | string;
- /** Specifies the Syncfusion button, split button, dropdown list, toggle button, gallery, custom controls to the groups in the ribbon control.
- * @Default {Array}
- */
- content?: TabsGroupsContent[];
+ /** Specifies the Syncfusion button, split button, dropdown list, toggle button, gallery, custom controls to the groups in the ribbon control.
+ * @Default {Array}
+ */
+ content?: TabsGroupsContent[];
- /** Specifies the ID of custom items to be placed in the groups.
- * @Default {null}
- */
- contentID?: string;
+ /** Specifies the ID of custom items to be placed in the groups.
+ * @Default {null}
+ */
+ contentID?: string;
- /** Specifies the HTML contents to place into the groups.
- * @Default {null}
- */
- customContent?: string;
+ /** Specifies the HTML contents to place into the groups.
+ * @Default {null}
+ */
+ customContent?: string;
- /** Specifies the group expander for groups in the ribbon control. Set "true" to enable the group expander.
- * @Default {false}
- */
- enableGroupExpander?: boolean;
+ /** Specifies the group expander for groups in the ribbon control. Set "true" to enable the group expander.
+ * @Default {false}
+ */
+ enableGroupExpander?: boolean;
- /** Sets custom setting to the groups in the ribbon control.
- * @Default {Object}
- */
- groupExpanderSettings?: TabsGroupsGroupExpanderSettings;
+ /** Sets custom setting to the groups in the ribbon control.
+ * @Default {Object}
+ */
+ groupExpanderSettings?: TabsGroupsGroupExpanderSettings;
- /** Specifies the text to the groups in the ribbon control.
- * @Default {null}
- */
- text?: string;
+ /** Specifies the text to the groups in the ribbon control.
+ * @Default {null}
+ */
+ text?: string;
- /** Specifies the custom items such as div, table, controls by using the "custom" type.
- * @Default {null}
- */
- type?: string;
-}
+ /** Specifies the custom items such as div, table, controls by using the "custom" type.
+ * @Default {null}
+ */
+ type?: string;
+ }
-export interface Tab {
+ export interface Tab {
- /** Specifies single group or multiple groups and its contents to each tab in the ribbon control.
- * @Default {Array}
- */
- groups?: TabsGroup[];
+ /** Specifies single group or multiple groups and its contents to each tab in the ribbon control.
+ * @Default {Array}
+ */
+ groups?: TabsGroup[];
- /** Specifies the ID for each tab's content panel.
- * @Default {null}
- */
- id?: string;
+ /** Specifies the ID for each tab's content panel.
+ * @Default {null}
+ */
+ id?: string;
- /** Specifies the text of the tab in the ribbon control.
- * @Default {null}
- */
- text?: string;
-}
+ /** Specifies the text of the tab in the ribbon control.
+ * @Default {null}
+ */
+ text?: string;
+ }
-enum ItemType {
+ enum ItemType {
- ///To render the button for ribbon backstage page’s contents
- Button,
+ ///To render the button for ribbon backstage page’s contents
+ Button,
- ///To render the tab for ribbon backstage page’s contents
- Tab
-}
+ ///To render the tab for ribbon backstage page’s contents
+ Tab
+ }
-enum ApplicationTabType {
+ enum ApplicationTabType {
- ///applicationTab display as menu
- Menu,
+ ///applicationTab display as menu
+ Menu,
- ///applicationTab display as backstage
- Backstage
-}
+ ///applicationTab display as backstage
+ Backstage
+ }
-enum AlignType {
+ enum AlignType {
- ///To align the group content's in row
- Rows,
+ ///To align the group content's in row
+ Rows,
- ///To align group content's in columns
- Columns
-}
+ ///To align group content's in columns
+ Columns
+ }
-enum CustomItemType {
+ enum CustomItemType {
- ///Specifies the button type in customGalleryItems
- Button,
+ ///Specifies the button type in customGalleryItems
+ Button,
- ///Specifies the menu type in customGalleryItems
- Menu
-}
+ ///Specifies the menu type in customGalleryItems
+ Menu
+ }
-enum QuickAccessMode {
+ enum QuickAccessMode {
- ///Controls are hidden in Quick Access toolbar
- None,
+ ///Controls are hidden in Quick Access toolbar
+ None,
- ///Add controls in toolBar
- ToolBar,
+ ///Add controls in toolBar
+ ToolBar,
- ///Add controls in menu
- Menu
-}
+ ///Add controls in menu
+ Menu
+ }
-enum Type {
+ enum Type {
- ///Specifies the button control
- Button,
+ ///Specifies the button control
+ Button,
- ///Specifies the split button
- SplitButton,
+ ///Specifies the split button
+ SplitButton,
- ///Specifies the dropDown
- DropDownList,
+ ///Specifies the dropDown
+ DropDownList,
- ///To append external element's
- Custom,
+ ///To append external element's
+ Custom,
- ///Specifies the toggle button
- ToggleButton,
+ ///Specifies the toggle button
+ ToggleButton,
- ///Specifies the ribbon gallery
- Gallery
-}
+ ///Specifies the ribbon gallery
+ Gallery
+ }
-}
+ }
-class Kanban extends ej.Widget {
- static fn: Kanban;
- constructor(element: JQuery | Element, options?: Kanban.Model);
- static Locale: any;
- model: Kanban.Model;
- defaults: Kanban.Model;
+ class Kanban extends ej.Widget {
+ static fn: Kanban;
+ constructor(element: JQuery | Element, options?: Kanban.Model);
+ static Locale: any;
+ model: Kanban.Model;
+ defaults: Kanban.Model;
- /** Add or remove columns in Kanban columns collections.Default action is add.
- * @param {Array|string} Pass array of columns or string of headerText to add/remove the column in Kanban
- * @param {Array|string} Pass array of columns or string of key value to add/remove the column in Kanban
- * @param {string} optional Pass add/remove action to be performed. By default "add" action will perform
- * @returns {void}
- */
- columns(columndetails: any[]|string, keyvalue: any[]|string, action?: string): void;
+ /** Add or remove columns in Kanban columns collections.Default action is add.
+ * @param {Array|string} Pass array of columns or string of headerText to add/remove the column in Kanban
+ * @param {Array|string} Pass array of columns or string of key value to add/remove the column in Kanban
+ * @param {string} optional Pass add/remove action to be performed. By default "add" action will perform
+ * @returns {void}
+ */
+ columns(columndetails: any[] | string, keyvalue: any[] | string, action?: string): void;
- /** Destroy the Kanban widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
- * @returns {void}
- */
- destroy(): void;
+ /** Destroy the Kanban widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
+ * @returns {void}
+ */
+ destroy(): void;
- /** Refresh the Kanban with new data source.
- * @param {Array} Pass new data source to the Kanban
- * @returns {void}
- */
- dataSource(datasource: any[]): void;
+ /** Refresh the Kanban with new data source.
+ * @param {Array} Pass new data source to the Kanban
+ * @returns {void}
+ */
+ dataSource(datasource: any[]): void;
- /** toggleColumn based on the headerText in Kanban.
- * @param {any} Pass the header text of the column to get the corresponding column object
- * @returns {void}
- */
- toggleColumn(headerText: any): void;
+ /** toggleColumn based on the headerText in Kanban.
+ * @param {any} Pass the header text of the column to get the corresponding column object
+ * @returns {void}
+ */
+ toggleColumn(headerText: any): void;
- /** Expand or collapse the card based on the state of target "div"
- * @param {string|number} Pass the id of card to be toggle
- * @returns {void}
- */
- toggleCard(key: string|number): void;
+ /** Expand or collapse the card based on the state of target "div"
+ * @param {string|number} Pass the id of card to be toggle
+ * @returns {void}
+ */
+ toggleCard(key: string | number): void;
- /** Used for get the names of all the visible column name collections in Kanban.
- * @returns {Array}
- */
- getVisibleColumnNames(): any[];
+ /** Used for get the names of all the visible column name collections in Kanban.
+ * @returns {Array}
+ */
+ getVisibleColumnNames(): any[];
- /** Get the scroller object of Kanban.
- * @returns {ej.Scroller}
- */
- getScrollObject(): ej.Scroller;
-
- /** Get the column details based on the given header text in Kanban.
- * @param {string} Pass the header text of the column to get the corresponding column object
- * @returns {String}
- */
- getColumnByHeaderText(headerText: string): string;
-
- /** Get the table details based on the given header table in Kanban.
- * @returns {String}
- */
- getHeaderTable(): string;
-
- /** Hide columns from the Kanban based on the header text
- * @param {Array|string} you can pass either array of header text of various columns or a header text of a column to hide
- * @returns {void}
- */
- hideColumns(headerText: any[]|string): void;
-
- /** Print the Kanban Board
- * @returns {void}
- */
- print(): void;
-
- /** Refresh the template of the Kanban
- * @returns {void}
- */
- refreshTemplate(): void;
-
- /** Refresh the Kanban contents.The template refreshment is based on the argument passed along with this method
- * @param {boolean} optional When templateRefresh is set true, template and Kanban contents both are refreshed in Kanban else only Kanban content is refreshed
- * @returns {void}
- */
- refresh(templateRefresh?: boolean): void;
-
- /** Show columns in the Kanban based on the header text.
- * @param {Array|string} You can pass either array of header text of various columns or a header text of a column to show
- * @returns {void}
- */
- showColumns(headerText: any[]|string): void;
-
- /** Update a card in Kanban control based on key and JSON data given.
- * @param {string} Pass the key field Name of the column
- * @param {Array} Pass the edited JSON data of card need to be update.
- * @returns {void}
- */
- updateCard(key: string, data: any[]): void;
-
- KanbanSelection: Kanban.KanbanSelection;
-
- KanbanSwimlane: Kanban.KanbanSwimlane;
-
- KanbanFilter: Kanban.KanbanFilter;
-
- KanbanEdit: Kanban.KanbanEdit;
-}
-export namespace Kanban {
-
-export interface KanbanSelection {
-
- /** It is used to clear all the card selection.
- * @returns {void}
- */
- clear(): void;
-}
-
-export interface KanbanSwimlane {
-
- /** Expand all the swimlane rows in Kanban.
- * @returns {void}
- */
- expandAll(): void;
-
- /** Collapse all the swimlane rows in Kanban.
- * @returns {void}
- */
- collapseAll(): void;
-
- /** Expand or collapse the swimlane row based on the state of target "div"
- * @param {any} Pass the div object to toggleSwimlane row based on its row state
- * @returns {void}
- */
- toggle($div: any): void;
-}
-
-export interface KanbanFilter {
-
- /** Method used for send a clear search request to Kanban.
- * @returns {void}
- */
- clearSearch(): void;
-
- /** Send a search request to Kanban with specified string passed in it.
- * @param {string} Pass the string to search in Kanban card
- * @returns {void}
- */
- searchCards(searchString: string): void;
-
- /** Send a clear request to filter cards in the kanban.
- * @returns {void}
- */
- clearFilter(): void;
-
- /** Send a filtering request to cards in the kanban.
- * @returns {void}
- */
- filterCards(): void;
-}
-
-export interface KanbanEdit {
-
- /** Add a new card in Kanban control when allowAdding is set as true. If parameters are not given default dialog will be open.
- * @param {string} Pass the primary key field Name of the column
- * @param {Array} Pass the edited JSON data of card need to be add.
- * @returns {void}
- */
- addCard(primaryKey: string, card: any[]): void;
-
- /** Send a cancel request of add/edit card in Kanban when allowEditing/allowAdding is set as true.
- * @returns {void}
- */
- cancelEdit(): void;
-
- /** Delete a card in Kanban control when allowAdding/allowEditing is set as true.
- * @param {string|number} Pass the key of card to be delete
- * @returns {void}
- */
- deleteCard(Key: string|number): void;
-
- /** Send a save request in Kanban when any card is in edit/new add card state and allowEditing/allowAdding is set as true.
- * @returns {void}
- */
- endEdit(): void;
-
- /** Send an edit card request in Kanban when allowEditing is set as true. Parameter will be HTML element or primary key
- * @param {any} Pass the div selected row element to be edited in Kanban
- * @returns {void}
- */
- startEdit($div: any): void;
-
- /** Method used for set validation to a field during editing.
- * @param {string} Specify the name of the column to set validation rules
- * @param {any} Specify the validation rules for the field
- * @returns {void}
- */
- setValidationToField(name: string, rules: any): void;
-}
-
-export interface Model {
-
- /** Gets or sets a value that indicates whether to enable allowDragAndDrop behavior on Kanban.
- * @Default {true}
- */
- allowDragAndDrop?: boolean;
-
- /** To enable or disable the title of the card.
- * @Default {false}
- */
- allowTitle?: boolean;
-
- /** Customize the settings for swim lane.
- * @Default {Object}
- */
- swimlaneSettings?: SwimlaneSettings;
-
- /** To enable or disable the column expand /collapse.
- * @Default {false}
- */
- allowToggleColumn?: boolean;
-
- /** To enable Searching operation in Kanban.
- * @Default {false}
- */
- allowSearching?: boolean;
-
- /** To enable filtering behavior on Kanban.User can specify query in filterSettings collection after enabling allowFiltering.
- * @Default {false}
- */
- allowFiltering?: boolean;
-
- /** Gets or sets a value that indicates whether to enable allowSelection behavior on Kanban.User can select card and the selected card will be highlighted on Kanban.
- * @Default {true}
- */
- allowSelection?: boolean;
-
- /** Gets or sets a value that indicates whether to allow card hover actions.
- * @Default {true}
- */
- allowHover?: boolean;
-
- /** To allow keyboard navigation actions.
- * @Default {false}
- */
- allowKeyboardNavigation?: boolean;
-
- /** Gets or sets a value that indicates whether to enable the scrollbar in the Kanban and view the card by scroll through the Kanban manually.
- * @Default {false}
- */
- allowScrolling?: boolean;
-
- /** Gets or sets a value that indicates whether to enable printing option.
- * @Default {false}
- */
- allowPrinting?: boolean;
-
- /** Gets or sets an object that indicates whether to customize the context menu behavior of the Kanban.
- * @Default {Object}
- */
- contextMenuSettings?: ContextMenuSettings;
-
- /** Gets or sets an object that indicates to render the Kanban with specified columns.
- * @Default {Array}
- */
- columns?: Column[];
-
- /** Gets or sets an object that indicates whether to Customize the card settings.
- * @Default {Object}
- */
- cardSettings?: CardSettings;
-
- /** Gets or sets a value that indicates whether to add customToolbarItems within the toolbar to perform any action in the Kanban.
- * @Default {[]}
- */
- customToolbarItems?: CustomToolbarItem[];
-
- /** Gets or sets a value that indicates to render the Kanban with custom theme.
- */
- cssClass?: string;
-
- /** Gets or sets the data to render the Kanban with cards.
- * @Default {null}
- */
- dataSource?: any;
-
- /** To perform kanban functionalities with touch interaction.
- * @Default {true}
- */
- enableTouch?: boolean;
-
- /** Align content in the Kanban control align from right to left by setting the property as true.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** To show total count of cards in each column.
- * @Default {false}
- */
- enableTotalCount?: boolean;
-
- /** Get or sets an object that indicates whether to customize the editing behavior of the Kanban.
- * @Default {Object}
- */
- editSettings?: EditSettings;
-
- /** To customize field mappings for card , editing title and control key parameters
- * @Default {Object}
- */
- fields?: Fields;
-
- /** To map datasource field for column values mapping
- * @Default {null}
- */
- keyField?: string;
-
- /** When set to true, adapts the Kanban layout to fit the screen size of devices on which it renders.
- * @Default {false}
- */
- isResponsive?: boolean;
-
- /** Gets or sets a value that indicates whether to set the minimum width of the responsive Kanban while isResponsive property is true.
- * @Default {0}
- */
- minWidth?: number;
-
- /** To customize the filtering behavior based on queries given.
- * @Default {Array}
- */
- filterSettings?: FilterSetting[];
-
- /** ej Query to query database of Kanban.
- * @Default {null}
- */
- query?: any;
-
- /** To change the key in keyboard interaction to Kanban control.
- * @Default {null}
- */
- keySettings?: any;
-
- /** Gets or sets an object that indicates whether to customize the scrolling behavior of the Kanban.
- * @Default {Object}
- */
- scrollSettings?: ScrollSettings;
+ /** Get the scroller object of Kanban.
+ * @returns {ej.Scroller}
+ */
+ getScrollObject(): ej.Scroller;
+
+ /** Get the column details based on the given header text in Kanban.
+ * @param {string} Pass the header text of the column to get the corresponding column object
+ * @returns {String}
+ */
+ getColumnByHeaderText(headerText: string): string;
+
+ /** Get the table details based on the given header table in Kanban.
+ * @returns {String}
+ */
+ getHeaderTable(): string;
+
+ /** Hide columns from the Kanban based on the header text
+ * @param {Array|string} you can pass either array of header text of various columns or a header text of a column to hide
+ * @returns {void}
+ */
+ hideColumns(headerText: any[] | string): void;
+
+ /** Print the Kanban Board
+ * @returns {void}
+ */
+ print(): void;
+
+ /** Refresh the template of the Kanban
+ * @returns {void}
+ */
+ refreshTemplate(): void;
+
+ /** Refresh the Kanban contents.The template refreshment is based on the argument passed along with this method
+ * @param {boolean} optional When templateRefresh is set true, template and Kanban contents both are refreshed in Kanban else only Kanban content is refreshed
+ * @returns {void}
+ */
+ refresh(templateRefresh?: boolean): void;
+
+ /** Show columns in the Kanban based on the header text.
+ * @param {Array|string} You can pass either array of header text of various columns or a header text of a column to show
+ * @returns {void}
+ */
+ showColumns(headerText: any[] | string): void;
+
+ /** Update a card in Kanban control based on key and JSON data given.
+ * @param {string} Pass the key field Name of the column
+ * @param {Array} Pass the edited JSON data of card need to be update.
+ * @returns {void}
+ */
+ updateCard(key: string, data: any[]): void;
+
+ KanbanSelection: Kanban.KanbanSelection;
+
+ KanbanSwimlane: Kanban.KanbanSwimlane;
+
+ KanbanFilter: Kanban.KanbanFilter;
+
+ KanbanEdit: Kanban.KanbanEdit;
+ }
+ export namespace Kanban {
+
+ export interface KanbanSelection {
+
+ /** It is used to clear all the card selection.
+ * @returns {void}
+ */
+ clear(): void;
+ }
+
+ export interface KanbanSwimlane {
+
+ /** Expand all the swimlane rows in Kanban.
+ * @returns {void}
+ */
+ expandAll(): void;
+
+ /** Collapse all the swimlane rows in Kanban.
+ * @returns {void}
+ */
+ collapseAll(): void;
+
+ /** Expand or collapse the swimlane row based on the state of target "div"
+ * @param {any} Pass the div object to toggleSwimlane row based on its row state
+ * @returns {void}
+ */
+ toggle($div: any): void;
+ }
+
+ export interface KanbanFilter {
+
+ /** Method used for send a clear search request to Kanban.
+ * @returns {void}
+ */
+ clearSearch(): void;
+
+ /** Send a search request to Kanban with specified string passed in it.
+ * @param {string} Pass the string to search in Kanban card
+ * @returns {void}
+ */
+ searchCards(searchString: string): void;
+
+ /** Send a clear request to filter cards in the kanban.
+ * @returns {void}
+ */
+ clearFilter(): void;
+
+ /** Send a filtering request to cards in the kanban.
+ * @returns {void}
+ */
+ filterCards(): void;
+ }
+
+ export interface KanbanEdit {
+
+ /** Add a new card in Kanban control when allowAdding is set as true. If parameters are not given default dialog will be open.
+ * @param {string} Pass the primary key field Name of the column
+ * @param {Array} Pass the edited JSON data of card need to be add.
+ * @returns {void}
+ */
+ addCard(primaryKey: string, card: any[]): void;
+
+ /** Send a cancel request of add/edit card in Kanban when allowEditing/allowAdding is set as true.
+ * @returns {void}
+ */
+ cancelEdit(): void;
+
+ /** Delete a card in Kanban control when allowAdding/allowEditing is set as true.
+ * @param {string|number} Pass the key of card to be delete
+ * @returns {void}
+ */
+ deleteCard(Key: string | number): void;
+
+ /** Send a save request in Kanban when any card is in edit/new add card state and allowEditing/allowAdding is set as true.
+ * @returns {void}
+ */
+ endEdit(): void;
+
+ /** Send an edit card request in Kanban when allowEditing is set as true. Parameter will be HTML element or primary key
+ * @param {any} Pass the div selected row element to be edited in Kanban
+ * @returns {void}
+ */
+ startEdit($div: any): void;
+
+ /** Method used for set validation to a field during editing.
+ * @param {string} Specify the name of the column to set validation rules
+ * @param {any} Specify the validation rules for the field
+ * @returns {void}
+ */
+ setValidationToField(name: string, rules: any): void;
+ }
+
+ export interface Model {
+
+ /** Gets or sets a value that indicates whether to enable allowDragAndDrop behavior on Kanban.
+ * @Default {true}
+ */
+ allowDragAndDrop?: boolean;
+
+ /** To enable or disable the title of the card.
+ * @Default {false}
+ */
+ allowTitle?: boolean;
+
+ /** Customize the settings for swim lane.
+ * @Default {Object}
+ */
+ swimlaneSettings?: SwimlaneSettings;
+
+ /** To enable or disable the column expand /collapse.
+ * @Default {false}
+ */
+ allowToggleColumn?: boolean;
+
+ /** To enable Searching operation in Kanban.
+ * @Default {false}
+ */
+ allowSearching?: boolean;
+
+ /** To enable filtering behavior on Kanban.User can specify query in filterSettings collection after enabling allowFiltering.
+ * @Default {false}
+ */
+ allowFiltering?: boolean;
+
+ /** Gets or sets a value that indicates whether to enable allowSelection behavior on Kanban.User can select card and the selected card will be highlighted on Kanban.
+ * @Default {true}
+ */
+ allowSelection?: boolean;
+
+ /** Gets or sets a value that indicates whether to allow card hover actions.
+ * @Default {true}
+ */
+ allowHover?: boolean;
+
+ /** To allow keyboard navigation actions.
+ * @Default {false}
+ */
+ allowKeyboardNavigation?: boolean;
+
+ /** Gets or sets a value that indicates whether to enable the scrollbar in the Kanban and view the card by scroll through the Kanban manually.
+ * @Default {false}
+ */
+ allowScrolling?: boolean;
+
+ /** Gets or sets a value that indicates whether to enable printing option.
+ * @Default {false}
+ */
+ allowPrinting?: boolean;
+
+ /** Gets or sets an object that indicates whether to customize the context menu behavior of the Kanban.
+ * @Default {Object}
+ */
+ contextMenuSettings?: ContextMenuSettings;
+
+ /** Gets or sets an object that indicates to render the Kanban with specified columns.
+ * @Default {Array}
+ */
+ columns?: Column[];
+
+ /** Gets or sets an object that indicates whether to Customize the card settings.
+ * @Default {Object}
+ */
+ cardSettings?: CardSettings;
+
+ /** Gets or sets a value that indicates whether to add customToolbarItems within the toolbar to perform any action in the Kanban.
+ * @Default {[]}
+ */
+ customToolbarItems?: CustomToolbarItem[];
+
+ /** Gets or sets a value that indicates to render the Kanban with custom theme.
+ */
+ cssClass?: string;
+
+ /** Gets or sets the data to render the Kanban with cards.
+ * @Default {null}
+ */
+ dataSource?: any;
+
+ /** To perform kanban functionalities with touch interaction.
+ * @Default {true}
+ */
+ enableTouch?: boolean;
+
+ /** Align content in the Kanban control align from right to left by setting the property as true.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** To show total count of cards in each column.
+ * @Default {false}
+ */
+ enableTotalCount?: boolean;
+
+ /** Get or sets an object that indicates whether to customize the editing behavior of the Kanban.
+ * @Default {Object}
+ */
+ editSettings?: EditSettings;
+
+ /** To customize field mappings for card , editing title and control key parameters
+ * @Default {Object}
+ */
+ fields?: Fields;
+
+ /** To map datasource field for column values mapping
+ * @Default {null}
+ */
+ keyField?: string;
+
+ /** When set to true, adapts the Kanban layout to fit the screen size of devices on which it renders.
+ * @Default {false}
+ */
+ isResponsive?: boolean;
+
+ /** Gets or sets a value that indicates whether to set the minimum width of the responsive Kanban while isResponsive property is true.
+ * @Default {0}
+ */
+ minWidth?: number;
+
+ /** To customize the filtering behavior based on queries given.
+ * @Default {Array}
+ */
+ filterSettings?: FilterSetting[];
+
+ /** ej Query to query database of Kanban.
+ * @Default {null}
+ */
+ query?: any;
+
+ /** To change the key in keyboard interaction to Kanban control.
+ * @Default {null}
+ */
+ keySettings?: any;
+
+ /** Gets or sets an object that indicates whether to customize the scrolling behavior of the Kanban.
+ * @Default {Object}
+ */
+ scrollSettings?: ScrollSettings;
- /** To customize the searching behavior of the Kanban.
- * @Default {Object}
- */
- searchSettings?: SearchSettings;
+ /** To customize the searching behavior of the Kanban.
+ * @Default {Object}
+ */
+ searchSettings?: SearchSettings;
- /** To allow customize selection type. Accepting types are "single" and "multiple".
- * @Default {ej.Kanban.SelectionType.Single}
- */
- selectionType?: ej.Kanban.SelectionType|string;
+ /** To allow customize selection type. Accepting types are "single" and "multiple".
+ * @Default {ej.Kanban.SelectionType.Single}
+ */
+ selectionType?: ej.Kanban.SelectionType | string;
- /** Gets or sets an object that indicates to managing the collection of stacked header rows for the Kanban.
- * @Default {Array}
- */
- stackedHeaderRows?: StackedHeaderRow[];
+ /** Gets or sets an object that indicates to managing the collection of stacked header rows for the Kanban.
+ * @Default {Array}
+ */
+ stackedHeaderRows?: StackedHeaderRow[];
- /** The tooltip allows to display card details in a tooltip while hovering on it.
- */
- tooltipSettings?: TooltipSettings;
+ /** The tooltip allows to display card details in a tooltip while hovering on it.
+ */
+ tooltipSettings?: TooltipSettings;
- /** Gets or sets an object that indicates to render the Kanban with specified workflows.
- * @Default {Array}
- */
- workflows?: Workflow[];
+ /** Gets or sets an object that indicates to render the Kanban with specified workflows.
+ * @Default {Array}
+ */
+ workflows?: Workflow[];
- /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e. in a language and culture specific
- * to a particular country or region.
- * @Default {en-US}
- */
- locale?: string;
+ /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e. in a language and culture specific
+ * to a particular country or region.
+ * @Default {en-US}
+ */
+ locale?: string;
- /** Triggered for every Kanban action before its starts. */
- actionBegin?(e: ActionBeginEventArgs): void;
+ /** Triggered for every Kanban action before its starts. */
+ actionBegin?(e: ActionBeginEventArgs): void;
- /** Triggered for every Kanban action success event. */
- actionComplete?(e: ActionCompleteEventArgs): void;
+ /** Triggered for every Kanban action success event. */
+ actionComplete?(e: ActionCompleteEventArgs): void;
- /** Triggered for every Kanban action server failure event. */
- actionFailure?(e: ActionFailureEventArgs): void;
+ /** Triggered for every Kanban action server failure event. */
+ actionFailure?(e: ActionFailureEventArgs): void;
- /** Triggered before the task is going to be edited. */
- beginEdit?(e: BeginEditEventArgs): void;
+ /** Triggered before the task is going to be edited. */
+ beginEdit?(e: BeginEditEventArgs): void;
- /** Triggered before the card is going to be added */
- beginAdd?(e: BeginAddEventArgs): void;
+ /** Triggered before the card is going to be added */
+ beginAdd?(e: BeginAddEventArgs): void;
- /** Triggered before the card is selected. */
- beforeCardSelect?(e: BeforeCardSelectEventArgs): void;
+ /** Triggered before the card is selected. */
+ beforeCardSelect?(e: BeforeCardSelectEventArgs): void;
- /** Trigger after the card is clicked. */
- cardClick?(e: CardClickEventArgs): void;
+ /** Trigger after the card is clicked. */
+ cardClick?(e: CardClickEventArgs): void;
- /** Triggered when the card is being dragged. */
- cardDrag?(e: CardDragEventArgs): void;
+ /** Triggered when the card is being dragged. */
+ cardDrag?(e: CardDragEventArgs): void;
- /** Triggered when card dragging start. */
- cardDragStart?(e: CardDragStartEventArgs): void;
+ /** Triggered when card dragging start. */
+ cardDragStart?(e: CardDragStartEventArgs): void;
- /** Triggered when card dragging stops. */
- cardDragStop?(e: CardDragStopEventArgs): void;
+ /** Triggered when card dragging stops. */
+ cardDragStop?(e: CardDragStopEventArgs): void;
- /** Triggered when the card is Dropped. */
- cardDrop?(e: CardDropEventArgs): void;
+ /** Triggered when the card is Dropped. */
+ cardDrop?(e: CardDropEventArgs): void;
- /** Triggered after the card is selected. */
- cardSelect?(e: CardSelectEventArgs): void;
+ /** Triggered after the card is selected. */
+ cardSelect?(e: CardSelectEventArgs): void;
- /** Triggered when card is double clicked. */
- cardDoubleClick?(e: CardDoubleClickEventArgs): void;
+ /** Triggered when card is double clicked. */
+ cardDoubleClick?(e: CardDoubleClickEventArgs): void;
- /** Triggered before the card is selected. */
- cardSelecting?(e: CardSelectingEventArgs): void;
+ /** Triggered before the card is selected. */
+ cardSelecting?(e: CardSelectingEventArgs): void;
- /** Triggered when the Kanban is rendered completely */
- create?(e: CreateEventArgs): void;
+ /** Triggered when the Kanban is rendered completely */
+ create?(e: CreateEventArgs): void;
- /** Triggers after the cell is clicked. */
- cellClick?(e: CellClickEventArgs): void;
+ /** Triggers after the cell is clicked. */
+ cellClick?(e: CellClickEventArgs): void;
- /** Triggered the Kanban is bound with data during initial rendering. */
- dataBound?(e: DataBoundEventArgs): void;
+ /** Triggered before the context menu is opened. */
+ contextOpen?(e: ContextOpenEventArgs): void;
- /** Triggered when Kanban going to destroy. */
- destroy?(e: DestroyEventArgs): void;
+ /** Triggered when context menu item is clicked in Kanban */
+ contextClick?(e: ContextClickEventArgs): void;
- /** Triggered after the card is deleted. */
- endDelete?(e: EndDeleteEventArgs): void;
+ /** Triggered the Kanban is bound with data during initial rendering. */
+ dataBound?(e: DataBoundEventArgs): void;
- /** Triggered after the card is edited. */
- endEdit?(e: EndEditEventArgs): void;
+ /** Triggered when Kanban going to destroy. */
+ destroy?(e: DestroyEventArgs): void;
- /** Triggers after the header is clicked. */
- headerClick?(e: HeaderClickEventArgs): void;
+ /** Triggered after the card is deleted. */
+ endDelete?(e: EndDeleteEventArgs): void;
- /** Triggered initial load. */
- load?(e: LoadEventArgs): void;
+ /** Triggered after the card is edited. */
+ endEdit?(e: EndEditEventArgs): void;
- /** Triggered when toolbar item is clicked in Kanban. */
- toolbarClick?(e: ToolbarClickEventArgs): void;
+ /** Triggers after the header is clicked. */
+ headerClick?(e: HeaderClickEventArgs): void;
- /** Triggered every time a single card rendered request is made to access particular card information. */
- queryCellInfo?(e: QueryCellInfoEventArgs): void;
+ /** Triggered initial load. */
+ load?(e: LoadEventArgs): void;
- /** Triggered before the context menu is opened. */
- contextOpen?(e: ContextOpenEventArgs): void;
-}
+ /** Triggered every time a single card rendered request is made to access particular card information. */
+ queryCellInfo?(e: QueryCellInfoEventArgs): void;
-export interface ActionBeginEventArgs {
+ /** Triggered when toolbar item is clicked in Kanban. */
+ toolbarClick?(e: ToolbarClickEventArgs): void;
+ }
- /** Returns the Kanban model.
- */
- model?: any;
+ export interface ActionBeginEventArgs {
- /** Returns the name of the event.
- */
- type?: string;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ /** Returns the name of the event.
+ */
+ type?: string;
- /** Returns the current action event type.
- */
- originalEventType?: string;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns primary key value.
- */
- primaryKeyValue?: string;
+ /** Returns the current action event type.
+ */
+ originalEventType?: string;
- /** Returns request type.
- */
- requestType?: string;
+ /** Returns primary key value.
+ */
+ primaryKeyValue?: string;
- /** Returns the edited row index.
- */
- rowIndex?: number;
+ /** Returns request type.
+ */
+ requestType?: string;
- /** Returns the card object (JSON).
- */
- data?: any;
+ /** Returns the edited row index.
+ */
+ rowIndex?: number;
- /** Returns current filtering object field name.
- */
- currentFilteringobject?: any;
+ /** Returns the card object (JSON).
+ */
+ data?: any;
- /** Returns filter details.
- */
- filterCollection?: any;
-}
+ /** Returns current filtering object field name.
+ */
+ currentFilteringobject?: any;
-export interface ActionCompleteEventArgs {
+ /** Returns filter details.
+ */
+ filterCollection?: any;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface ActionCompleteEventArgs {
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns request type.
- */
- requestType?: string;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the name of the event.
- */
- type?: string;
+ /** Returns request type.
+ */
+ requestType?: string;
- /** Returns current action event type.
- */
- originalEventType?: string;
+ /** Returns the name of the event.
+ */
+ type?: string;
- /** Returns primary key.
- */
- primaryKey?: string;
+ /** Returns current action event type.
+ */
+ originalEventType?: string;
- /** Returns primary key value.
- */
- primaryKeyValue?: string;
+ /** Returns primary key.
+ */
+ primaryKey?: string;
- /** Returns Kanban element.
- */
- target?: any;
+ /** Returns primary key value.
+ */
+ primaryKeyValue?: string;
- /** Returns the card object (JSON).
- */
- data?: any;
+ /** Returns Kanban element.
+ */
+ target?: any;
- /** Returns the selectedRow index.
- */
- selectedRow?: number;
+ /** Returns the card object (JSON).
+ */
+ data?: any;
- /** Returns current filtering column field name.
- */
- currentFilteringColumn?: string;
+ /** Returns the selectedRow index.
+ */
+ selectedRow?: number;
- /** Returns filter details.
- */
- filterCollection?: any;
-}
+ /** Returns current filtering column field name.
+ */
+ currentFilteringColumn?: string;
-export interface ActionFailureEventArgs {
+ /** Returns filter details.
+ */
+ filterCollection?: any;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface ActionFailureEventArgs {
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns request type.
- */
- requestType?: string;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the name of the event.
- */
- type?: string;
+ /** Returns request type.
+ */
+ requestType?: string;
- /** Returns the error return by server.
- */
- error?: any;
+ /** Returns the name of the event.
+ */
+ type?: string;
- /** Returns current action event type.
- */
- originalEventType?: string;
+ /** Returns the error return by server.
+ */
+ error?: any;
- /** Returns primary key value.
- */
- primaryKeyValue?: string;
+ /** Returns current action event type.
+ */
+ originalEventType?: string;
- /** Returns Kanban element.
- */
- target?: any;
+ /** Returns primary key value.
+ */
+ primaryKeyValue?: string;
- /** Returns the card object (JSON).
- */
- data?: any;
+ /** Returns Kanban element.
+ */
+ target?: any;
- /** Returns current filtering column field name.
- */
- currentFilteringColumn?: string;
+ /** Returns the card object (JSON).
+ */
+ data?: any;
- /** Returns filter details.
- */
- filterCollection?: any;
-}
+ /** Returns current filtering column field name.
+ */
+ currentFilteringColumn?: string;
-export interface BeginEditEventArgs {
+ /** Returns filter details.
+ */
+ filterCollection?: any;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface BeginEditEventArgs {
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns primary key value.
- */
- primaryKeyValue?: string;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns begin edit data.
- */
- data?: any;
+ /** Returns primary key value.
+ */
+ primaryKeyValue?: string;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns begin edit data.
+ */
+ data?: any;
-export interface BeginAddEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the Kanban model.
- */
- model?: any;
+ export interface BeginAddEventArgs {
- /** Returns primary key value.
- */
- primaryKeyValue?: string;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns beginAdd data.
- */
- data?: any;
+ /** Returns primary key value.
+ */
+ primaryKeyValue?: string;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns beginAdd data.
+ */
+ data?: any;
-export interface BeforeCardSelectEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface BeforeCardSelectEventArgs {
- /** Returns the select cell index value.
- */
- cellIndex?: number;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the select card index value.
- */
- cardIndex?: number;
+ /** Returns the select cell index value.
+ */
+ cellIndex?: number;
- /** Returns the select cell element
- */
- currentCell?: any;
+ /** Returns the select card index value.
+ */
+ cardIndex?: number;
- /** Returns the previously select the card element
- */
- previousCard?: any;
+ /** Returns the select cell element
+ */
+ currentCell?: any;
- /** Returns the previously select card indexes
- */
- previousRowcellindex?: any[];
+ /** Returns the previously select the card element
+ */
+ previousCard?: any;
- /** Returns the Target item.
- */
- Target?: any;
+ /** Returns the previously select card indexes
+ */
+ previousRowcellindex?: any[];
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns the Target item.
+ */
+ Target?: any;
- /** Returns select card data.
- */
- data?: any;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns select card data.
+ */
+ data?: any;
-export interface CardClickEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface CardClickEventArgs {
- /** Returns current record object (JSON).
- */
- data?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the current card to the Kanban.
- */
- currentCard?: string;
+ /** Returns current record object (JSON).
+ */
+ data?: any;
- /** Returns Kanban element.
- */
- target?: any;
+ /** Returns the current card to the Kanban.
+ */
+ currentCard?: string;
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns Kanban element.
+ */
+ target?: any;
- /** Returns the Header text of the column corresponding to the selected card.
- */
- columnName?: string;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns the Header text of the column corresponding to the selected card.
+ */
+ columnName?: string;
-export interface CardDragEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface CardDragEventArgs {
- /** Returns drag data.
- */
- data?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns drag start element.
- */
- dragtarget?: any;
+ /** Returns drag data.
+ */
+ data?: any;
- /** Returns dragged element.
- */
- draggedElement?: any;
+ /** Returns drag start element.
+ */
+ dragtarget?: any;
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns dragged element.
+ */
+ draggedElement?: any;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns the Kanban model.
+ */
+ model?: any;
-export interface CardDragStartEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface CardDragStartEventArgs {
- /** Returns card drag start data.
- */
- data?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns dragged element.
- */
- draggedElement?: any;
+ /** Returns card drag start data.
+ */
+ data?: any;
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns dragged element.
+ */
+ draggedElement?: any;
- /** Returns drag start element.
- */
- dragtarget?: any;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns drag start element.
+ */
+ dragtarget?: any;
-export interface CardDragStopEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface CardDragStopEventArgs {
- /** Returns dragged element.
- */
- draggedElement?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns dragged element.
+ */
+ draggedElement?: any;
- /** Returns drag stop element.
- */
- droptarget?: any;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns drag stop data.
- */
- data?: any;
+ /** Returns drag stop element.
+ */
+ droptarget?: any;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns drag stop data.
+ */
+ data?: any;
-export interface CardDropEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface CardDropEventArgs {
- /** Returns dragged element.
- */
- draggedElement?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns previous parent of dragged element
- */
- draggedParent?: any;
+ /** Returns dragged element.
+ */
+ draggedElement?: any;
- /** Returns dragged data.
- */
- data?: any;
+ /** Returns previous parent of dragged element
+ */
+ draggedParent?: any;
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns dragged data.
+ */
+ data?: any;
- /** Returns drop element.
- */
- target?: any;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns drop element.
+ */
+ target?: any;
-export interface CardSelectEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the select cell index value.
- */
- cellIndex?: number;
+ export interface CardSelectEventArgs {
- /** Returns the select card index value.
- */
- cardIndex?: number;
+ /** Returns the select cell index value.
+ */
+ cellIndex?: number;
- /** Returns the select cell element
- */
- currentCell?: any;
+ /** Returns the select card index value.
+ */
+ cardIndex?: number;
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ /** Returns the select cell element
+ */
+ currentCell?: any;
- /** Returns the previously select the card element
- */
- previousCard?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the previously select card indexes
- */
- previousRowcellindex?: any[];
+ /** Returns the previously select the card element
+ */
+ previousCard?: any;
- /** Returns the current item.
- */
- currentTarget?: any;
+ /** Returns the previously select card indexes
+ */
+ previousRowcellindex?: any[];
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns the current item.
+ */
+ currentTarget?: any;
- /** Returns select card data.
- */
- data?: any;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns select card data.
+ */
+ data?: any;
-export interface CardDoubleClickEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface CardDoubleClickEventArgs {
- /** Returns current card object (JSON).
- */
- data?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns current card object (JSON).
+ */
+ data?: any;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns the Kanban model.
+ */
+ model?: any;
-export interface CardSelectingEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the selecting cell index value.
- */
- cellIndex?: number;
+ export interface CardSelectingEventArgs {
- /** Returns the selecting card index value.
- */
- cardIndex?: number;
+ /** Returns the selecting cell index value.
+ */
+ cellIndex?: number;
- /** Returns the selecting cell element
- */
- currentCell?: any;
+ /** Returns the selecting card index value.
+ */
+ cardIndex?: number;
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ /** Returns the selecting cell element
+ */
+ currentCell?: any;
- /** Returns the previously selecting the card element
- */
- previousCard?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the previously rowcell is selecting card indexes
- */
- previousRowcellindex?: any[];
+ /** Returns the previously selecting the card element
+ */
+ previousCard?: any;
- /** Returns the current item.
- */
- currentTarget?: any;
+ /** Returns the previously rowcell is selecting card indexes
+ */
+ previousRowcellindex?: any[];
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns the current item.
+ */
+ currentTarget?: any;
- /** Returns added data.
- */
- data?: any;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns added data.
+ */
+ data?: any;
-export interface CreateEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface CreateEventArgs {
- /** Returns the kanban model.
- */
- model?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns the kanban model.
+ */
+ model?: any;
-export interface CellClickEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface CellClickEventArgs {
- /** Returns the kanban model.
- */
- model?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the name of the event.
- */
- type?: string;
+ /** Returns the kanban model.
+ */
+ model?: any;
- /** Returns the select cell index value.
- */
- cellIndex?: number;
+ /** Returns the name of the event.
+ */
+ type?: string;
- /** Returns the edited row index.
- */
- rowIndex?: number;
-}
+ /** Returns the select cell index value.
+ */
+ cellIndex?: number;
-export interface DataBoundEventArgs {
+ /** Returns the edited row index.
+ */
+ rowIndex?: number;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface ContextOpenEventArgs {
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns the Kanban model.
+ */
+ model?: any;
-export interface DestroyEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
- /** Returns the kanban model.
- */
- model?: any;
+ /** Returns the current item.
+ */
+ currentTarget?: any;
- /** Returns deleted data.
- */
- data?: any;
+ /** Returns the status of contextmenu item which denotes its enabled state.
+ */
+ status?: boolean;
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns the target item.
+ */
+ target?: any;
+ }
-export interface EndDeleteEventArgs {
+ export interface ContextClickEventArgs {
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns request type.
- */
- requestType?: string;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ /** Returns the name of the event.
+ */
+ type?: string;
- /** Returns deleted data.
- */
- data?: any;
+ /** Returns the current item.
+ */
+ currentTarget?: any;
- /** Returns the name of the event.
- */
- type?: string;
+ /** Returns the status of contextmenu item which denotes its enabled state.
+ */
+ status?: boolean;
- /** Current action name
- */
- action?: string;
-}
+ /** Returns the target item.
+ */
+ target?: any;
+ }
-export interface EndEditEventArgs {
+ export interface DataBoundEventArgs {
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns request type.
- */
- requestType?: string;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns modified data.
- */
- data?: any;
+ export interface DestroyEventArgs {
- /** Returns the name of the event.
- */
- type?: string;
+ /** Returns the kanban model.
+ */
+ model?: any;
- /** Current Action name
- */
- action?: string;
-}
+ /** Returns deleted data.
+ */
+ data?: any;
-export interface HeaderClickEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface EndDeleteEventArgs {
- /** Returns the kanban model.
- */
- model?: any;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** Returns the name of the event.
- */
- type?: string;
+ /** Returns request type.
+ */
+ requestType?: string;
- /** Returns the select cell index value.
- */
- cellIndex?: number;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the column object.
- */
- columnData?: any;
-}
+ /** Returns deleted data.
+ */
+ data?: any;
-export interface LoadEventArgs {
+ /** Returns the name of the event.
+ */
+ type?: string;
- /** Returns the kanban model.
- */
- model?: any;
+ /** Current action name
+ */
+ action?: string;
+ }
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ export interface EndEditEventArgs {
- /** Returns the name of the event.
- */
- type?: string;
-}
+ /** Returns the Kanban model.
+ */
+ model?: any;
-export interface ToolbarClickEventArgs {
+ /** Returns request type.
+ */
+ requestType?: string;
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the current item.
- */
- currentTarget?: any;
+ /** Returns modified data.
+ */
+ data?: any;
- /** Returns the item id of that current element.
- */
- itemId?: string;
+ /** Returns the name of the event.
+ */
+ type?: string;
- /** Returns the item index of that current element.
- */
- itemIndex?: number;
+ /** Current Action name
+ */
+ action?: string;
+ }
- /** Returns the item name of that current element.
- */
- itemName?: string;
+ export interface HeaderClickEventArgs {
- /** Returns the item text of that current element.
- */
- itemText?: string;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns the kanban model.
+ */
+ model?: any;
- /** Returns the name of the event.
- */
- type?: string;
+ /** Returns the name of the event.
+ */
+ type?: string;
- /** Returns the toolbar object of the Kanban.
- */
- toolbarData?: any;
-}
+ /** Returns the select cell index value.
+ */
+ cellIndex?: number;
-export interface QueryCellInfoEventArgs {
+ /** Returns the column object.
+ */
+ columnData?: any;
+ }
- /** Returns Kanban card.
- */
- card?: any;
+ export interface LoadEventArgs {
- /** Returns Kanban card.
- */
- cell?: any;
+ /** Returns the kanban model.
+ */
+ model?: any;
- /** Returns the cancel option value.
- */
- cancel?: boolean;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns current row record object (JSON).
- */
- data?: any;
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
- /** Returns the column object.
- */
- column?: any;
+ export interface QueryCellInfoEventArgs {
- /** Returns the Kanban model.
- */
- model?: any;
-
- /** Returns the name of the event.
- */
- type?: string;
-}
-
-export interface ContextOpenEventArgs {
+ /** Returns Kanban card.
+ */
+ card?: any;
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-
- /** Returns the Kanban model.
- */
- model?: any;
+ /** Returns Kanban card.
+ */
+ cell?: any;
- /** Returns the name of the event.
- */
- type?: string;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Returns the current item.
- */
- currentTarget?: any;
-
- /** Returns the status of contextmenu item which denotes its enabled state.
- */
- status?: boolean;
-
- /** Returns the target item.
- */
- target?: any;
-}
-
-export interface SwimlaneSettingsUnassignedGroup {
-
- /** To enable or disable unassigned category change with swim lane key values.
- * @Default {true}
- */
- enable?: boolean;
-
- /** To set the user defined values which are need to categorized as unassigned category swim lane groups.
- * @Default {[null,undefined,]}
- */
- keys?: any[];
-}
-
-export interface SwimlaneSettings {
-
- /** To enable or disable items count in swim lane.
- * @Default {true}
- */
- showCount?: boolean;
-
- /** To enable or disable DragAndDrop across swim lane.
- * @Default {false}
- */
- allowDragAndDrop?: boolean;
-
- /** Customize the settings for unassigned category of swim lane.
- * @Default {Object}
- */
- unassignedGroup?: SwimlaneSettingsUnassignedGroup;
-}
-
-export interface ContextMenuSettingsCustomMenuItem {
-
- /** Its sets target element to custom context menu item.
- * @Default {ej.Kanban.Target.All}
- */
- target?: ej.Kanban.Target|string;
-
- /** Gets the display name to custom menu item.
- * @Default {null}
- */
- text?: string;
-
- /** Gets the template to render custom context menu item.
- * @Default {null}
- */
- template?: string;
-}
-
-export interface ContextMenuSettings {
-
- /** To enable context menu.All default context menu will show.
- * @Default {false}
- */
- enable?: boolean;
-
- /** Gets or sets a value that indicates the list of items needs to be disable from default context menu items.
- * @Default {Array}
- */
- disableDefaultItems?: any[];
-
- /** Its used to add specific default context menu items.
- * @Default {Array}
- */
- menuItems?: any[];
-
- /** Gets or sets a value that indicates whether to add custom contextMenu items.
- * @Default {Array}
- */
- customMenuItems?: ContextMenuSettingsCustomMenuItem[];
-}
-
-export interface ColumnsTotalCount {
-
- /** To customize the totalCount text properties.
- * @Default {null}
- */
- text?: string;
-}
-
-export interface ColumnsConstraints {
-
- /** It is used to specify the type of constraints as column or swimlane.
- * @Default {null}
- */
- type?: string;
-
- /** It is used to specify the minimum amount of card in particular column cell or swimlane cell can hold.
- * @Default {null}
- */
- min?: number;
-
- /** It is used to specify the maximum amount of card in particular column cell or swimlane cell can hold.
- * @Default {null}
- */
- max?: number;
-}
-
-export interface Column {
-
- /** Gets or sets an object that indicates to render the Kanban with specified columns header text.
- * @Default {null}
- */
- headerText?: string;
-
- /** To customize the totalCount properties.
- * @Default {Object}
- */
- totalCount?: ColumnsTotalCount;
-
- /** Gets or sets an object that indicates to render the Kanban with specified columns key.
- * @Default {null}
- */
- key?: string|number;
-
- /** To enable/disable allowDrop for specific column wise.
- * @Default {true}
- */
- allowDrop?: boolean;
-
- /** To enable/disable allowDrag for specific column wise.
- * @Default {true}
- */
- allowDrag?: boolean;
-
- /** To set column collapse or expand state
- * @Default {false}
- */
- isCollapsed?: boolean;
-
- /** To customize the column level constraints with minimum ,maximum limit validation.
- * @Default {Object}
- */
- constraints?: ColumnsConstraints;
-
- /** Gets or sets a value that indicates to add the template within the header element.
- * @Default {null}
- */
- headerTemplate?: string;
-
- /** Gets or sets an object that indicates to render the Kanban with specified columns width.
- * @Default {null}
- */
- width?: string|number;
-
- /** Gets or sets an object that indicates to set specific column visibility.
- * @Default {true}
- */
- visible?: boolean;
-
- /** Gets or sets an object that indicates whether to show add new button.
- * @Default {false}
- */
- showAddButton?: boolean;
-}
-
-export interface CardSettings {
-
- /** Gets or sets a value that indicates to add the template for card .
- * @Default {null}
- */
- template?: string;
-
- /** To customize the card border color based on assigned task. Colors and corresponding values defined here will be mapped with colorField mapped data source column.
- * @Default {Object}
- */
- colorMapping?: any;
-}
-
-export interface CustomToolbarItem {
-
- /** Gets the template to render customToolbarItems.
- * @Default {null}
- */
- template?: string;
-}
-
-export interface EditSettingsEditItem {
-
- /** It is used to map editing field from the data source.
- * @Default {null}
- */
- field?: string;
-
- /** It is used to set the particular editType in the card for editing.
- * @Default {ej.Kanban.EditingType.String}
- */
- editType?: ej.Kanban.EditingType|string;
-
- /** Gets or sets a value that indicates to define constraints for saving data to the database.
- * @Default {Object}
- */
- validationRules?: any;
-
- /** It is used to set the particular editparams in the card for editing.
- * @Default {Object}
- */
- editParams?: any;
-
- /** It is used to specify defaultValue for the fields while adding new card.
- * @Default {null}
- */
- defaultValue?: string|number;
-}
-
-export interface EditSettings {
-
- /** Gets or sets a value that indicates whether to enable the editing action in cards of Kanban.
- * @Default {false}
- */
- allowEditing?: boolean;
-
- /** Gets or sets a value that indicates whether to enable the adding action in cards behavior on Kanban.
- * @Default {false}
- */
- allowAdding?: boolean;
-
- /** This specifies the id of the template which is require to be edited using the Dialog Box.
- * @Default {null}
- */
- dialogTemplate?: string;
-
- /** Get or sets an object that indicates whether to customize the editMode of the Kanban.
- * @Default {ej.Kanban.EditMode.Dialog}
- */
- editMode?: ej.Kanban.EditMode|string;
-
- /** Get or sets an object that indicates whether to customize the editing fields of Kanban card.
- * @Default {Array}
- */
- editItems?: EditSettingsEditItem[];
-
- /** This specifies the id of the template which is require to be edited using the External edit form.
- * @Default {null}
- */
- externalFormTemplate?: string;
-
- /** This specifies to set the position of an External edit form either in the right or bottom of the Kanban.
- * @Default {ej.Kanban.FormPosition.Bottom}
- */
- formPosition?: ej.Kanban.FormPosition|string;
-}
-
-export interface Fields {
-
- /** The primarykey field is mapped to data source field. And this will used for Drag and drop and editing mainly.
- * @Default {null}
- */
- primaryKey?: string;
-
- /** To enable swimlane grouping based on the given key field from datasource mapping.
- * @Default {null}
- */
- swimlaneKey?: string;
-
- /** Priority field has been mapped data source field to maintain cards priority.
- * @Default {null}
- */
- priority?: string;
-
- /** Content field has been Mapped into card text.
- * @Default {null}
- */
- content?: string;
-
- /** Tag field has been Mapped into card tag.
- * @Default {null}
- */
- tag?: string;
-
- /** Title field has been Mapped to field in datasource for title content. If title field specified , card expand/collapse will be enabled with header and content section.
- * @Default {null}
- */
- title?: string;
-
- /** To customize the card has been Mapped into card color field.
- * @Default {null}
- */
- color?: string;
-
- /** ImageUrl field has been Mapped into card image.
- * @Default {null}
- */
- imageUrl?: string;
-}
-
-export interface FilterSetting {
-
- /** Gets or sets an object of display name to filter queries.
- * @Default {null}
- */
- text?: string;
-
- /** Gets or sets an object that Queries to perform filtering
- * @Default {Object}
- */
- query?: any;
-
- /** Gets or sets an object of tooltip to filter buttons.
- * @Default {null}
- */
- description?: string;
-}
-
-export interface ScrollSettings {
-
- /** Gets or sets an object that indicates to render the Kanban with specified scroll height.
- * @Default {0}
- */
- height?: string|number;
-
- /** Gets or sets an object that indicates to render the Kanban with specified scroll width.
- * @Default {auto}
- */
- width?: string|number;
-
- /** To allow the Kanban to freeze particular swimlane at the time of scrolling , until scroll reaches next swimlane and it continues.
- * @Default {false}
- */
- allowFreezeSwimlane?: boolean;
-}
-
-export interface SearchSettings {
-
- /** To customize the fields the searching operation can be perform.
- * @Default {Array}
- */
- fields?: any[];
+ /** Returns current row record object (JSON).
+ */
+ data?: any;
- /** To customize the searching string.
- */
- key?: string;
+ /** Returns the column object.
+ */
+ column?: any;
- /** To customize the operator based on searching.
- * @Default {contains}
- */
- operator?: string;
+ /** Returns the Kanban model.
+ */
+ model?: any;
- /** To customize the ignore case based on searching.
- * @Default {true}
- */
- ignoreCase?: boolean;
-}
+ /** Returns the name of the event.
+ */
+ type?: string;
+ }
-export interface StackedHeaderRowsStackedHeaderColumn {
+ export interface ToolbarClickEventArgs {
- /** Gets or sets a value that indicates the headerText for the particular stacked header column.
- * @Default {null}
- */
- headerText?: string;
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
- /** Gets or sets a value that indicates the column for the particular stacked header column.
- * @Default {null}
- */
- column?: string;
-}
+ /** Returns the current item.
+ */
+ currentTarget?: any;
+
+ /** Returns the item id of that current element.
+ */
+ itemId?: string;
-export interface StackedHeaderRow {
+ /** Returns the item index of that current element.
+ */
+ itemIndex?: number;
+
+ /** Returns the item name of that current element.
+ */
+ itemName?: string;
- /** Gets or sets a value that indicates whether to add stacked header columns into the stacked header rows.
- * @Default {Array}
- */
- stackedHeaderColumns?: StackedHeaderRowsStackedHeaderColumn[];
-}
+ /** Returns the item text of that current element.
+ */
+ itemText?: string;
-export interface TooltipSettings {
+ /** Returns the Kanban model.
+ */
+ model?: any;
+
+ /** Returns the name of the event.
+ */
+ type?: string;
+
+ /** Returns the toolbar object of the Kanban.
+ */
+ toolbarData?: any;
+ }
+
+ export interface SwimlaneSettingsUnassignedGroup {
+
+ /** To enable or disable unassigned category change with swim lane key values.
+ * @Default {true}
+ */
+ enable?: boolean;
+
+ /** To set the user defined values which are need to categorized as unassigned category swim lane groups.
+ * @Default {[null,undefined,]}
+ */
+ keys?: any[];
+ }
+
+ export interface SwimlaneSettings {
+
+ /** To enable or disable items count in swim lane.
+ * @Default {true}
+ */
+ showCount?: boolean;
+
+ /** To enable or disable DragAndDrop across swim lane.
+ * @Default {false}
+ */
+ allowDragAndDrop?: boolean;
+
+ /** Customize the settings for unassigned category of swim lane.
+ * @Default {Object}
+ */
+ unassignedGroup?: SwimlaneSettingsUnassignedGroup;
+ }
+
+ export interface ContextMenuSettingsCustomMenuItem {
+
+ /** Its sets target element to custom context menu item.
+ * @Default {ej.Kanban.Target.All}
+ */
+ target?: ej.Kanban.Target | string;
+
+ /** Gets the display name to custom menu item.
+ * @Default {null}
+ */
+ text?: string;
+
+ /** Gets the template to render custom context menu item.
+ * @Default {null}
+ */
+ template?: string;
+ }
+
+ export interface ContextMenuSettings {
+
+ /** To enable context menu.All default context menu will show.
+ * @Default {false}
+ */
+ enable?: boolean;
+
+ /** Gets or sets a value that indicates the list of items needs to be disable from default context menu items.
+ * @Default {Array}
+ */
+ disableDefaultItems?: any[];
+
+ /** Its used to add specific default context menu items.
+ * @Default {Array}
+ */
+ menuItems?: any[];
+
+ /** Gets or sets a value that indicates whether to add custom contextMenu items.
+ * @Default {Array}
+ */
+ customMenuItems?: ContextMenuSettingsCustomMenuItem[];
+ }
+
+ export interface ColumnsTotalCount {
+
+ /** To customize the totalCount text properties.
+ * @Default {null}
+ */
+ text?: string;
+ }
+
+ export interface ColumnsConstraints {
+
+ /** It is used to specify the type of constraints as column or swimlane.
+ * @Default {null}
+ */
+ type?: string;
+
+ /** It is used to specify the minimum amount of card in particular column cell or swimlane cell can hold.
+ * @Default {null}
+ */
+ min?: number;
+
+ /** It is used to specify the maximum amount of card in particular column cell or swimlane cell can hold.
+ * @Default {null}
+ */
+ max?: number;
+ }
+
+ export interface Column {
+
+ /** Gets or sets an object that indicates to render the Kanban with specified columns header text.
+ * @Default {null}
+ */
+ headerText?: string;
+
+ /** To customize the totalCount properties.
+ * @Default {Object}
+ */
+ totalCount?: ColumnsTotalCount;
+
+ /** Gets or sets an object that indicates to render the Kanban with specified columns key.
+ * @Default {null}
+ */
+ key?: string | number;
+
+ /** To enable/disable allowDrop for specific column wise.
+ * @Default {true}
+ */
+ allowDrop?: boolean;
+
+ /** To enable/disable allowDrag for specific column wise.
+ * @Default {true}
+ */
+ allowDrag?: boolean;
+
+ /** To set column collapse or expand state
+ * @Default {false}
+ */
+ isCollapsed?: boolean;
+
+ /** To customize the column level constraints with minimum ,maximum limit validation.
+ * @Default {Object}
+ */
+ constraints?: ColumnsConstraints;
+
+ /** Gets or sets a value that indicates to add the template within the header element.
+ * @Default {null}
+ */
+ headerTemplate?: string;
+
+ /** Gets or sets an object that indicates to render the Kanban with specified columns width.
+ * @Default {null}
+ */
+ width?: string | number;
+
+ /** Gets or sets an object that indicates to set specific column visibility.
+ * @Default {true}
+ */
+ visible?: boolean;
+
+ /** Gets or sets an object that indicates whether to show add new button.
+ * @Default {false}
+ */
+ showAddButton?: boolean;
+ }
+
+ export interface CardSettings {
+
+ /** Gets or sets a value that indicates to add the template for card .
+ * @Default {null}
+ */
+ template?: string;
+
+ /** To customize the card border color based on assigned task. Colors and corresponding values defined here will be mapped with colorField mapped data source column.
+ * @Default {Object}
+ */
+ colorMapping?: any;
+ }
+
+ export interface CustomToolbarItem {
+
+ /** Gets the template to render customToolbarItems.
+ * @Default {null}
+ */
+ template?: string;
+ }
+
+ export interface EditSettingsEditItem {
+
+ /** It is used to map editing field from the data source.
+ * @Default {null}
+ */
+ field?: string;
+
+ /** It is used to set the particular editType in the card for editing.
+ * @Default {ej.Kanban.EditingType.String}
+ */
+ editType?: ej.Kanban.EditingType | string;
+
+ /** Gets or sets a value that indicates to define constraints for saving data to the database.
+ * @Default {Object}
+ */
+ validationRules?: any;
+
+ /** It is used to set the particular editparams in the card for editing.
+ * @Default {Object}
+ */
+ editParams?: any;
+
+ /** It is used to specify defaultValue for the fields while adding new card.
+ * @Default {null}
+ */
+ defaultValue?: string | number;
+ }
+
+ export interface EditSettings {
+
+ /** Gets or sets a value that indicates whether to enable the editing action in cards of Kanban.
+ * @Default {false}
+ */
+ allowEditing?: boolean;
+
+ /** Gets or sets a value that indicates whether to enable the adding action in cards behavior on Kanban.
+ * @Default {false}
+ */
+ allowAdding?: boolean;
+
+ /** This specifies the id of the template which is require to be edited using the Dialog Box.
+ * @Default {null}
+ */
+ dialogTemplate?: string;
+
+ /** Get or sets an object that indicates whether to customize the editMode of the Kanban.
+ * @Default {ej.Kanban.EditMode.Dialog}
+ */
+ editMode?: ej.Kanban.EditMode | string;
+
+ /** Get or sets an object that indicates whether to customize the editing fields of Kanban card.
+ * @Default {Array}
+ */
+ editItems?: EditSettingsEditItem[];
+
+ /** This specifies the id of the template which is require to be edited using the External edit form.
+ * @Default {null}
+ */
+ externalFormTemplate?: string;
+
+ /** This specifies to set the position of an External edit form either in the right or bottom of the Kanban.
+ * @Default {ej.Kanban.FormPosition.Bottom}
+ */
+ formPosition?: ej.Kanban.FormPosition | string;
+ }
+
+ export interface Fields {
+
+ /** The primarykey field is mapped to data source field. And this will used for Drag and drop and editing mainly.
+ * @Default {null}
+ */
+ primaryKey?: string;
+
+ /** To enable swimlane grouping based on the given key field from datasource mapping.
+ * @Default {null}
+ */
+ swimlaneKey?: string;
+
+ /** Priority field has been mapped data source field to maintain cards priority.
+ * @Default {null}
+ */
+ priority?: string;
+
+ /** Content field has been Mapped into card text.
+ * @Default {null}
+ */
+ content?: string;
+
+ /** Tag field has been Mapped into card tag.
+ * @Default {null}
+ */
+ tag?: string;
+
+ /** Title field has been Mapped to field in datasource for title content. If title field specified , card expand/collapse will be enabled with header and content section.
+ * @Default {null}
+ */
+ title?: string;
+
+ /** To customize the card has been Mapped into card color field.
+ * @Default {null}
+ */
+ color?: string;
+
+ /** ImageUrl field has been Mapped into card image.
+ * @Default {null}
+ */
+ imageUrl?: string;
+ }
+
+ export interface FilterSetting {
+
+ /** Gets or sets an object of display name to filter queries.
+ * @Default {null}
+ */
+ text?: string;
+
+ /** Gets or sets an object that Queries to perform filtering
+ * @Default {Object}
+ */
+ query?: any;
+
+ /** Gets or sets an object of tooltip to filter buttons.
+ * @Default {null}
+ */
+ description?: string;
+ }
+
+ export interface ScrollSettings {
+
+ /** Gets or sets an object that indicates to render the Kanban with specified scroll height.
+ * @Default {0}
+ */
+ height?: string | number;
+
+ /** Gets or sets an object that indicates to render the Kanban with specified scroll width.
+ * @Default {auto}
+ */
+ width?: string | number;
+
+ /** To allow the Kanban to freeze particular swimlane at the time of scrolling , until scroll reaches next swimlane and it continues.
+ * @Default {false}
+ */
+ allowFreezeSwimlane?: boolean;
+ }
+
+ export interface SearchSettings {
+
+ /** To customize the fields the searching operation can be perform.
+ * @Default {Array}
+ */
+ fields?: any[];
- /** To enable or disable the tooltip display.
- * @Default {false}
- */
- enable?: boolean;
+ /** To customize the searching string.
+ */
+ key?: string;
- /** To customize the tooltip display based on your requirements.
- * @Default {null}
- */
- template?: string;
-}
+ /** To customize the operator based on searching.
+ * @Default {contains}
+ */
+ operator?: string;
-export interface Workflow {
+ /** To customize the ignore case based on searching.
+ * @Default {true}
+ */
+ ignoreCase?: boolean;
+ }
- /** Gets or sets an object that indicates to render the Kanban with specified workflows key.
- * @Default {null}
- */
- key?: string|number;
+ export interface StackedHeaderRowsStackedHeaderColumn {
- /** Gets or sets an object that indicates to render the Kanban with specified workflows allowed Transitions.
- * @Default {null}
- */
- allowedTransitions?: string;
-}
+ /** Gets or sets a value that indicates the headerText for the particular stacked header column.
+ * @Default {null}
+ */
+ headerText?: string;
-enum Target {
+ /** Gets or sets a value that indicates the column for the particular stacked header column.
+ * @Default {null}
+ */
+ column?: string;
+ }
- ///Sets context menu to Kanban header
- Header,
+ export interface StackedHeaderRow {
- ///Sets context menu to Kanban content
- Content,
+ /** Gets or sets a value that indicates whether to add stacked header columns into the stacked header rows.
+ * @Default {Array}
+ */
+ stackedHeaderColumns?: StackedHeaderRowsStackedHeaderColumn[];
+ }
- ///Sets context menu to Kanban card
- Card,
+ export interface TooltipSettings {
- ///Sets context menu to Kanban
- All
-}
+ /** To enable or disable the tooltip display.
+ * @Default {false}
+ */
+ enable?: boolean;
+ /** To customize the tooltip display based on your requirements.
+ * @Default {null}
+ */
+ template?: string;
+ }
-enum EditMode {
+ export interface Workflow {
- ///Creates Kanban with editMode as Dialog
- Dialog,
+ /** Gets or sets an object that indicates to render the Kanban with specified workflows key.
+ * @Default {null}
+ */
+ key?: string | number;
- ///Creates Kanban with editMode as DialogTemplate
- DialogTemplate,
+ /** Gets or sets an object that indicates to render the Kanban with specified workflows allowed Transitions.
+ * @Default {null}
+ */
+ allowedTransitions?: string;
+ }
- ///Creates Kanban with editMode as ExternalForm
- ExternalForm,
+ enum Target {
- ///Creates Kanban with editMode as ExternalFormTemplate
- ExternalFormTemplate
-}
+ ///Sets context menu to Kanban header
+ Header,
+ ///Sets context menu to Kanban content
+ Content,
-enum EditingType {
+ ///Sets context menu to Kanban card
+ Card,
- ///Allows to set edit type as string edit type
- String,
+ ///Sets context menu to Kanban
+ All
+ }
- ///Allows to set edit type as numeric edit type
- Numeric,
- ///Allows to set edit type as drop down edit type
- Dropdown,
+ enum EditMode {
- ///Allows to set edit type as date picker edit type
- DatePicker,
+ ///Creates Kanban with editMode as Dialog
+ Dialog,
- ///Allows to set edit type as date time picker edit type
- DateTimePicker,
+ ///Creates Kanban with editMode as DialogTemplate
+ DialogTemplate,
- ///Allows to set edit type as text area edit type
- TextArea,
+ ///Creates Kanban with editMode as ExternalForm
+ ExternalForm,
- ///Allows to set edit type as RTE edit type
- RTE
-}
+ ///Creates Kanban with editMode as ExternalFormTemplate
+ ExternalFormTemplate
+ }
-enum FormPosition {
+ enum EditingType {
- ///Form position is bottom.
- Bottom,
+ ///Allows to set edit type as string edit type
+ String,
- ///Form position is right.
- Right
-}
+ ///Allows to set edit type as numeric edit type
+ Numeric,
+ ///Allows to set edit type as drop down edit type
+ Dropdown,
-enum SelectionType {
+ ///Allows to set edit type as date picker edit type
+ DatePicker,
- ///Support for Single selection in Kanban
- Single,
+ ///Allows to set edit type as date time picker edit type
+ DateTimePicker,
- ///Support for multiple selections in Kanban
- Multiple
-}
+ ///Allows to set edit type as text area edit type
+ TextArea,
-}
+ ///Allows to set edit type as RTE edit type
+ RTE
+ }
-class Rotator extends ej.Widget {
- static fn: Rotator;
- constructor(element: JQuery | Element, options?: Rotator.Model);
- static Locale: any;
- model: Rotator.Model;
- defaults: Rotator.Model;
- /** Disables the Rotator control.
- * @returns {void}
- */
- disable(): void;
+ enum FormPosition {
- /** Enables the Rotator control.
- * @returns {void}
- */
- enable(): void;
+ ///Form position is bottom.
+ Bottom,
- /** This method is used to get the current slide index.
- * @returns {number}
- */
- getIndex(): number;
+ ///Form position is right.
+ Right
+ }
- /** This method is used to move a slide to the specified index.
- * @param {number} index of an slide
- * @returns {void}
- */
- gotoIndex(index: number): void;
- /** This method is used to pause autoplay.
- * @returns {void}
- */
- pause(): void;
+ enum SelectionType {
- /** This method is used to move slides continuously (or start autoplay) in the specified autoplay direction.
- * @returns {void}
- */
- play(): void;
+ ///Support for Single selection in Kanban
+ Single,
- /** This method is used to move to the next slide from the current slide. If the current slide is the last slide, then the first slide will be treated as the next slide.
- * @returns {void}
- */
- slideNext(): void;
+ ///Support for multiple selections in Kanban
+ Multiple
+ }
- /** This method is used to move to the previous slide from the current slide. If the current slide is the first slide, then the last slide will be treated as the previous slide.
- * @returns {void}
- */
- slidePrevious(): void;
-
- /** This method is used to update/modify the slide content of template rotator by using id based on index value.
- * @param {number} index of an slide
- * @param {string} id of a new updated slide
- * @returns {void}
- */
- updateTemplateById(index: number, id: string): void;
-}
-export namespace Rotator {
-
-export interface Model {
-
- /** Turns on keyboard interaction with the Rotator items. You must set this property to true to access the following keyboard shortcuts:
- * @Default {true}
- */
- allowKeyboardNavigation?: boolean;
-
- /** Sets the animationSpeed of slide transition.
- * @Default {600}
- */
- animationSpeed?: string|number;
-
- /** Specifies the animationType type for the Rotator Item. animationType options include slide, fastSlide, slowSlide, and other custom easing animationTypes.
- * @Default {slide}
- */
- animationType?: string;
-
- /** Enables the circular mode item rotation.
- * @Default {true}
- */
- circularMode?: boolean;
-
- /** Specify the CSS class to Rotator to achieve custom theme.
- */
- cssClass?: string;
-
- /** Specify the list of data which contains a set of data fields. Each data value is used to render an item for the Rotator.
- * @Default {null}
- */
- dataSource?: any;
-
- /** Sets the delay between the Rotator Items move after the slide transition.
- * @Default {500}
- */
- delay?: number;
-
- /** Specifies the number of Rotator Items to be displayed.
- * @Default {1}
- */
- displayItemsCount?: string|number;
-
- /** Rotates the Rotator Items continuously without user interference.
- * @Default {false}
- */
- enableAutoPlay?: boolean;
-
- /** Enables or disables the Rotator control.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Specifies right to left transition of slides.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Defines mapping fields for the data items of the Rotator.
- * @Default {null}
- */
- fields?: Fields;
-
- /** Sets the space between the Rotator Items.
- */
- frameSpace?: string|number;
-
- /** Resizes the Rotator when the browser is resized.
- * @Default {false}
- */
- isResponsive?: boolean;
-
- /** Specifies the number of Rotator Items to navigate on a single click (next/previous/play buttons).
- * The navigateSteps property value must be less than or equal to the displayItemsCount property value.
- * @Default {1}
- */
- navigateSteps?: string|number;
-
- /** Specifies the orientation for the Rotator control, that is, whether it must be rendered horizontally or vertically. See Orientation
- * @Default {ej.Orientation.Horizontal}
- */
- orientation?: ej.Orientation|string;
-
- /** Specifies the position of the showPager in the Rotator Item. See PagerPosition
- * @Default {outside}
- */
- pagerPosition?: string|ej.Rotator.PagerPosition;
-
- /** Retrieves data from remote data. This property is applicable only when a remote data source is used.
- * @Default {null}
- */
- query?: string;
-
- /** If the Rotator Item is an image, you can specify a caption for the Rotator Item. The caption text for each Rotator Item must be set by using the title attribute of the respective tag.
- * The caption cannot be displayed if multiple Rotator Items are present.
- * @Default {false}
- */
- showCaption?: boolean;
-
- /** Turns on or off the slide buttons (next and previous) in the Rotator Items. Slide buttons are used to navigate the Rotator Items.
- * @Default {true}
- */
- showNavigateButton?: boolean;
-
- /** Turns on or off the pager support in the Rotator control. The Pager is used to navigate the Rotator Items.
- * @Default {true}
- */
- showPager?: boolean;
-
- /** Enable play / pause button on rotator.
- * @Default {false}
- */
- showPlayButton?: boolean;
-
- /** Turns on or off thumbnail support in the Rotator control. Thumbnail is used to navigate between slides. Thumbnail supports only single slide transition
- * You must specify the source for thumbnail elements through the thumbnailSourceID property.
- * @Default {false}
- */
- showThumbnail?: boolean;
-
- /** Sets the height of a Rotator Item.
- */
- slideHeight?: string|number;
-
- /** Sets the width of a Rotator Item.
- */
- slideWidth?: string|number;
-
- /** Sets the index of the slide that must be displayed first.
- * @Default {0}
- */
- startIndex?: string|number;
-
- /** Pause the auto play while hover on the rotator content.
- * @Default {false}
- */
- stopOnHover?: boolean;
-
- /** The template to display the Rotator widget with customized appearance.
- * @Default {null}
- */
- template?: string;
-
- /** The templateId enables to bind multiple customized template items in Rotator.
- * @Default {null}
- */
- templateId?: any[];
-
- /** Specifies the source for thumbnail elements.
- * @Default {null}
- */
- thumbnailSourceID?: any;
-
- /** This event is fired when the Rotator slides are changed. */
- change?(e: ChangeEventArgs): void;
-
- /** This event is fired when the Rotator control is initialized. */
- create?(e: CreateEventArgs): void;
-
- /** This event is fired when the Rotator control is destroyed. */
- destroy?(e: DestroyEventArgs): void;
-
- /** This event is fired when a pager is clicked. */
- pagerClick?(e: PagerClickEventArgs): void;
-
- /** This event is fired when enableAutoPlay is started. */
- start?(e: StartEventArgs): void;
-
- /** This event is fired when autoplay is stopped or paused. */
- stop?(e: StopEventArgs): void;
-
- /** This event is fired when a thumbnail pager is clicked. */
- thumbItemClick?(e: ThumbItemClickEventArgs): void;
-}
-
-export interface ChangeEventArgs {
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ class Rotator extends ej.Widget {
+ static fn: Rotator;
+ constructor(element: JQuery | Element, options?: Rotator.Model);
+ static Locale: any;
+ model: Rotator.Model;
+ defaults: Rotator.Model;
- /** returns the rotator model
- */
- model?: ej.Rotator.Model;
+ /** Disables the Rotator control.
+ * @returns {void}
+ */
+ disable(): void;
- /** returns the name of the event
- */
- type?: string;
+ /** Enables the Rotator control.
+ * @returns {void}
+ */
+ enable(): void;
- /** the current rotator id.
- */
- itemId?: string;
+ /** This method is used to get the current slide index.
+ * @returns {number}
+ */
+ getIndex(): number;
- /** returns the current slide index.
- */
- activeItemIndex?: number;
-}
+ /** This method is used to move a slide to the specified index.
+ * @param {number} index of an slide
+ * @returns {void}
+ */
+ gotoIndex(index: number): void;
-export interface CreateEventArgs {
+ /** This method is used to pause autoplay.
+ * @returns {void}
+ */
+ pause(): void;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** This method is used to move slides continuously (or start autoplay) in the specified autoplay direction.
+ * @returns {void}
+ */
+ play(): void;
- /** returns the rotator model
- */
- model?: ej.Rotator.Model;
+ /** This method is used to move to the next slide from the current slide. If the current slide is the last slide, then the first slide will be treated as the next slide.
+ * @returns {void}
+ */
+ slideNext(): void;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** This method is used to move to the previous slide from the current slide. If the current slide is the first slide, then the last slide will be treated as the previous slide.
+ * @returns {void}
+ */
+ slidePrevious(): void;
+
+ /** This method is used to update/modify the slide content of template rotator by using id based on index value.
+ * @param {number} index of an slide
+ * @param {string} id of a new updated slide
+ * @returns {void}
+ */
+ updateTemplateById(index: number, id: string): void;
+ }
+ export namespace Rotator {
+
+ export interface Model {
+
+ /** Turns on keyboard interaction with the Rotator items. You must set this property to true to access the following keyboard shortcuts:
+ * @Default {true}
+ */
+ allowKeyboardNavigation?: boolean;
+
+ /** Sets the animationSpeed of slide transition.
+ * @Default {600}
+ */
+ animationSpeed?: string | number;
+
+ /** Specifies the animationType type for the Rotator Item. animationType options include slide, fastSlide, slowSlide, and other custom easing animationTypes.
+ * @Default {slide}
+ */
+ animationType?: string;
+
+ /** Enables the circular mode item rotation.
+ * @Default {true}
+ */
+ circularMode?: boolean;
+
+ /** Specify the CSS class to Rotator to achieve custom theme.
+ */
+ cssClass?: string;
+
+ /** Specify the list of data which contains a set of data fields. Each data value is used to render an item for the Rotator.
+ * @Default {null}
+ */
+ dataSource?: any;
+
+ /** Sets the delay between the Rotator Items move after the slide transition.
+ * @Default {500}
+ */
+ delay?: number;
+
+ /** Specifies the number of Rotator Items to be displayed.
+ * @Default {1}
+ */
+ displayItemsCount?: string | number;
+
+ /** Rotates the Rotator Items continuously without user interference.
+ * @Default {false}
+ */
+ enableAutoPlay?: boolean;
+
+ /** Enables or disables the Rotator control.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Specifies right to left transition of slides.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Defines mapping fields for the data items of the Rotator.
+ * @Default {null}
+ */
+ fields?: Fields;
+
+ /** Sets the space between the Rotator Items.
+ */
+ frameSpace?: string | number;
+
+ /** Resizes the Rotator when the browser is resized.
+ * @Default {false}
+ */
+ isResponsive?: boolean;
+
+ /** Specifies the number of Rotator Items to navigate on a single click (next/previous/play buttons).
+ * The navigateSteps property value must be less than or equal to the displayItemsCount property value.
+ * @Default {1}
+ */
+ navigateSteps?: string | number;
+
+ /** Specifies the orientation for the Rotator control, that is, whether it must be rendered horizontally or vertically. See Orientation
+ * @Default {ej.Orientation.Horizontal}
+ */
+ orientation?: ej.Orientation | string;
+
+ /** Specifies the position of the showPager in the Rotator Item. See PagerPosition
+ * @Default {outside}
+ */
+ pagerPosition?: string | ej.Rotator.PagerPosition;
+
+ /** Retrieves data from remote data. This property is applicable only when a remote data source is used.
+ * @Default {null}
+ */
+ query?: string;
+
+ /** If the Rotator Item is an image, you can specify a caption for the Rotator Item. The caption text for each Rotator Item must be set by using the title attribute of the respective tag.
+ * The caption cannot be displayed if multiple Rotator Items are present.
+ * @Default {false}
+ */
+ showCaption?: boolean;
+
+ /** Turns on or off the slide buttons (next and previous) in the Rotator Items. Slide buttons are used to navigate the Rotator Items.
+ * @Default {true}
+ */
+ showNavigateButton?: boolean;
+
+ /** Turns on or off the pager support in the Rotator control. The Pager is used to navigate the Rotator Items.
+ * @Default {true}
+ */
+ showPager?: boolean;
+
+ /** Enable play / pause button on rotator.
+ * @Default {false}
+ */
+ showPlayButton?: boolean;
+
+ /** Turns on or off thumbnail support in the Rotator control. Thumbnail is used to navigate between slides. Thumbnail supports only single slide transition
+ * You must specify the source for thumbnail elements through the thumbnailSourceID property.
+ * @Default {false}
+ */
+ showThumbnail?: boolean;
+
+ /** Sets the height of a Rotator Item.
+ */
+ slideHeight?: string | number;
+
+ /** Sets the width of a Rotator Item.
+ */
+ slideWidth?: string | number;
+
+ /** Sets the index of the slide that must be displayed first.
+ * @Default {0}
+ */
+ startIndex?: string | number;
+
+ /** Pause the auto play while hover on the rotator content.
+ * @Default {false}
+ */
+ stopOnHover?: boolean;
+
+ /** The template to display the Rotator widget with customized appearance.
+ * @Default {null}
+ */
+ template?: string;
+
+ /** The templateId enables to bind multiple customized template items in Rotator.
+ * @Default {null}
+ */
+ templateId?: any[];
+
+ /** Specifies the source for thumbnail elements.
+ * @Default {null}
+ */
+ thumbnailSourceID?: any;
+
+ /** This event is fired when the Rotator slides are changed. */
+ change?(e: ChangeEventArgs): void;
+
+ /** This event is fired when the Rotator control is initialized. */
+ create?(e: CreateEventArgs): void;
+
+ /** This event is fired when the Rotator control is destroyed. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** This event is fired when a pager is clicked. */
+ pagerClick?(e: PagerClickEventArgs): void;
+
+ /** This event is fired when enableAutoPlay is started. */
+ start?(e: StartEventArgs): void;
+
+ /** This event is fired when autoplay is stopped or paused. */
+ stop?(e: StopEventArgs): void;
+
+ /** This event is fired when a thumbnail pager is clicked. */
+ thumbItemClick?(e: ThumbItemClickEventArgs): void;
+ }
+
+ export interface ChangeEventArgs {
-export interface DestroyEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the rotator model
+ */
+ model?: ej.Rotator.Model;
- /** returns the rotator model
- */
- model?: ej.Rotator.Model;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** the current rotator id.
+ */
+ itemId?: string;
-export interface PagerClickEventArgs {
+ /** returns the current slide index.
+ */
+ activeItemIndex?: number;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface CreateEventArgs {
- /** returns the rotator model
- */
- model?: ej.Rotator.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the rotator model
+ */
+ model?: ej.Rotator.Model;
- /** the current rotator id.
- */
- itemId?: string;
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** returns the current slide index.
- */
- activeItemIndex?: number;
-}
+ export interface DestroyEventArgs {
-export interface StartEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the rotator model
+ */
+ model?: ej.Rotator.Model;
- /** returns the rotator model
- */
- model?: ej.Rotator.Model;
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** returns the name of the event
- */
- type?: string;
+ export interface PagerClickEventArgs {
- /** the current rotator id.
- */
- itemId?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the current slide index.
- */
- activeItemIndex?: number;
-}
+ /** returns the rotator model
+ */
+ model?: ej.Rotator.Model;
-export interface StopEventArgs {
+ /** returns the name of the event
+ */
+ type?: string;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** the current rotator id.
+ */
+ itemId?: string;
- /** returns the rotator model
- */
- model?: ej.Rotator.Model;
+ /** returns the current slide index.
+ */
+ activeItemIndex?: number;
+ }
- /** returns the name of the event
- */
- type?: string;
+ export interface StartEventArgs {
- /** the current rotator id.
- */
- itemId?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the current slide index.
- */
- activeItemIndex?: number;
-}
+ /** returns the rotator model
+ */
+ model?: ej.Rotator.Model;
-export interface ThumbItemClickEventArgs {
+ /** returns the name of the event
+ */
+ type?: string;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** the current rotator id.
+ */
+ itemId?: string;
- /** returns the rotator model
- */
- model?: ej.Rotator.Model;
+ /** returns the current slide index.
+ */
+ activeItemIndex?: number;
+ }
- /** returns the name of the event
- */
- type?: string;
+ export interface StopEventArgs {
- /** the current rotator id.
- */
- itemId?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the current slide index.
- */
- activeItemIndex?: number;
-}
+ /** returns the rotator model
+ */
+ model?: ej.Rotator.Model;
-export interface Fields {
+ /** returns the name of the event
+ */
+ type?: string;
- /** Specifies a link for the image.
- */
- linkAttribute?: string;
+ /** the current rotator id.
+ */
+ itemId?: string;
- /** Specifies where to open a given link.
- */
- targetAttribute?: string;
+ /** returns the current slide index.
+ */
+ activeItemIndex?: number;
+ }
- /** Specifies a caption for the image.
- */
- text?: string;
+ export interface ThumbItemClickEventArgs {
- /** Specifies a caption for the thumbnail image.
- */
- thumbnailText?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Specifies the URL for an thumbnail image.
- */
- thumbnailUrl?: string;
+ /** returns the rotator model
+ */
+ model?: ej.Rotator.Model;
- /** Specifies the URL for an image.
- */
- url?: string;
-}
-
-enum PagerPosition {
-
- ///string
- BottomLeft,
-
- ///string
- BottomRight,
-
- ///string
- Outside,
-
- ///string
- TopCenter,
-
- ///string
- TopLeft,
-
- ///string
- TopRight
-}
-
-}
-
-class RTE extends ej.Widget {
- static fn: RTE;
- constructor(element: JQuery | Element, options?: RTE.Model);
- static Locale: any;
- model: RTE.Model;
- defaults: RTE.Model;
-
- /** Returns the range object.
- * @returns {any}
- */
- createRange(): any;
-
- /** Disables the RTE control.
- * @returns {void}
- */
- disable(): void;
-
- /** Disables the corresponding tool in the RTE ToolBar.
- * @returns {void}
- */
- disableToolbarItem(): void;
-
- /** Enables the RTE control.
- * @returns {void}
- */
- enable(): void;
-
- /** Enables the corresponding tool in the toolbar when the tool is disabled.
- * @returns {void}
- */
- enableToolbarItem(): void;
-
- /** Performs the action value based on the given command.
- * @returns {void}
- */
- executeCommand(): void;
-
- /** Focuses the RTE control.
- * @returns {void}
- */
- focus(): void;
-
- /** Gets the command status of the selected text based on the given comment in the RTE control.
- * @returns {boolean}
- */
- getCommandStatus(): boolean;
-
- /** Gets the Document from the RTE control.
- * @returns {Document}
- */
- getDocument(): Document;
-
- /** Gets the HTML string from the RTE control.
- * @returns {HTMLElement}
- */
- getHtml(): HTMLElement;
-
- /** Gets the selected HTML string from the RTE control.
- * @returns {HTMLElement}
- */
- getSelectedHtml(): HTMLElement;
-
- /** Gets the content as string from the RTE control.
- * @returns {string}
- */
- getText(): string;
-
- /** Hides the RTE control.
- * @returns {void}
- */
- hide(): void;
-
- /** Inserts new item to the target contextmenu node.
- * @returns {void}
- */
- insertMenuOption(): void;
-
- /** Add a table column at the right or left of the specified cell
- * @param {boolean} If it’s true, add a column at the left of the cell, otherwise add a column at the right of the cell
- * @param {JQuery} Column will be added based on the given cell element
- * @returns {HTMLElement}
- */
- insertColumn(before?: boolean, cell?: JQuery): HTMLElement;
-
- /** To add a table row below or above the specified cell.
- * @param {boolean} If it’s true, add a row before the cell, otherwise add a row after the cell
- * @param {JQuery} Row will be added based on the given cell element
- * @returns {HTMLElement}
- */
- insertRow(before?: boolean, cell?: JQuery): HTMLElement;
-
- /** This method helps to insert/paste the content at the current cursor (caret) position or the selected content to be replaced with our text by passing the value as parameter to the
- * pasteContent method in the Editor.
- * @returns {void}
- */
- pasteContent(): void;
-
- /** Refreshes the RTE control.
- * @returns {void}
- */
- refresh(): void;
-
- /** Removes the specified table column.
- * @param {JQuery} Remove the given column element
- * @returns {void}
- */
- removeColumn(cell?: JQuery): void;
-
- /** Removes the specified table row.
- * @param {JQuery} Remove the given row element
- * @returns {void}
- */
- removeRow(cell?: JQuery): void;
-
- /** Deletes the specified table.
- * @param {JQuery} Remove the given table
- * @returns {void}
- */
- removeTable(table?: JQuery): void;
-
- /** Removes the target menu item from the RTE contextmenu.
- * @returns {void}
- */
- removeMenuOption(): void;
-
- /** Removes the given tool from the RTE Toolbar.
- * @returns {void}
- */
- removeToolbarItem(): void;
-
- /** Selects all the contents within the RTE.
- * @returns {void}
- */
- selectAll(): void;
-
- /** Selects the contents in the given range.
- * @returns {void}
- */
- selectRange(): void;
-
- /** Sets the color picker model type rendered initially in the RTE control.
- * @returns {void}
- */
- setColorPickerType(): void;
-
- /** Sets the HTML string from the RTE control.
- * @returns {void}
- */
- setHtml(): void;
-
- /** Displays the RTE control.
- * @returns {void}
- */
- show(): void;
-}
-export namespace RTE {
-
-export interface Model {
-
- /** Enables/disables the editing of the content.
- * @Default {True}
- */
- allowEditing?: boolean;
-
- /** RTE control can be accessed through the keyboard shortcut keys.
- * @Default {True}
- */
- allowKeyboardNavigation?: boolean;
-
- /** When the property is set to true, it focuses the RTE at the time of rendering.
- * @Default {false}
- */
- autoFocus?: boolean;
-
- /** Based on the content size, its height is adjusted instead of adding the scrollbar.
- * @Default {false}
- */
- autoHeight?: boolean;
-
- /** Sets the colorCode to display the color of the fontColor and backgroundColor in the font tools of the RTE.
- * @Default {[000000, FFFFFF, C4C4C4, ADADAD, 595959, 262626, 4f81bd, dbe5f1, b8cce4, 95b3d7, 366092, 244061, c0504d, f2dcdb, e5b9b7, d99694, 953734,632423, 9bbb59,
- ebf1dd, d7e3bc, c3d69b, 76923c, 4f6128, 8064a2, e5e0ec, ccc1d9, b2a2c7, 5f497a, 3f3151, f79646, fdeada, fbd5b5, fac08f,e36c09, 974806]}
- */
- colorCode?: any;
-
- /** The number of columns given are rendered in the color palate popup.
- * @Default {6}
- */
- colorPaletteColumns?: number;
-
- /** The number of rows given are rendered in the color palate popup.
- * @Default {6}
- */
- colorPaletteRows?: number;
-
- /** Sets the root class for the RTE theme. This cssClass API helps the usage of custom skinning option for the RTE control by including this root class in CSS.
- */
- cssClass?: string;
-
- /** Enables/disables the RTE control’s accessibility or interaction.
- * @Default {True}
- */
- enabled?: boolean;
-
- /** When the property is set to true, it returns the encrypted text.
- * @Default {false}
- */
- enableHtmlEncode?: boolean;
-
- /** Maintain the values of the RTE after page reload.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Shows the resize icon and enables the resize option in the RTE.
- * @Default {True}
- */
- enableResize?: boolean;
-
- /** Shows the RTE in the RTL direction.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Formats the contents based on the XHTML rules.
- * @Default {false}
- */
- enableXHTML?: boolean;
-
- /** Enables the tab key action with the RichTextEditor content.
- * @Default {True}
- */
- enableTabKeyNavigation?: boolean;
-
- /** This API allows to enable url and fileName for pdf export.
- * @Default {null}
- */
- exportToPdfSettings?: ExportToPdfSettings;
-
- /** This API allows to enable url and fileName for word export.
- * @Default {null}
- */
- exportToWordSettings?: ExportToWordSettings;
-
- /** Load the external CSS file inside Iframe.
- * @Default {null}
- */
- externalCSS?: string;
-
- /** This API allows to enable the file browser support in the RTE control to browse, create, delete and upload the files in the specified current directory.
- * @Default {null}
- */
- fileBrowser?: FileBrowser;
-
- /** Sets the fontName in the RTE.
- * @Default {{text: Segoe UI, value: Segoe UI },{text: Arial, value: Arial,Helvetica,sans-serif },{text: Courier New, value: Courier New,Courier,Monospace },
- * {text: Georgia, value: Georgia,serif },{text: Impact, value: Impact,Charcoal,sans-serif },{text: Lucida Console, value: Lucida Console,Monaco,Monospace },
- * {text: Tahoma, value: Tahoma,Geneva,sans-serif },{text: Times New Roman, value: Times New Roman },{text: Trebuchet MS, value: Trebuchet MS,Helvetica,sans-serif },
- * {text: Verdana, value: Verdana,Geneva,sans-serif}}
- */
- fontName?: any;
-
- /** Sets the fontSize in the RTE.
- * @Default {{ text: 1, value: 1 },{ text: 2 (10pt), value: 2 },{ text: 3 (12pt), value: 3 },{ text: 4 (14pt), value: 4 },{ text: 5 (18pt), value: 5 },
- * { text: 6 (24pt), value: 6 },{ text: 7 (36pt), value: 7 }}
- */
- fontSize?: any;
-
- /** Sets the format in the RTE.
- * @Default {{ text: Paragraph, value: <p>, spriteCssClass: e-paragraph },{ text: Quotation, value: <blockquote>, spriteCssClass: e-quotation },
- * { text: Heading 1, value: <h1>, spriteCssClass: e-h1 },{ text: Heading 2, value: <h2>, spriteCssClass: e-h2 },{ text: Heading 3, value: <h3>, spriteCssClass: e-h3 },
- * { text: Heading 4, value: <h4>, spriteCssClass: e-h4 },{ text: Heading 5, value: <h5>, spriteCssClass: e-h5 },{ text: Heading 6, value: <h6>, spriteCssClass: e-h6}}
- */
- format?: string;
-
- /** Defines the height of the RTE textbox.
- * @Default {370}
- */
- height?: string|number;
-
- /** Specifies the HTML Attributes of the ejRTE.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Sets the given attributes to the iframe body element.
- * @Default {{}}
- */
- iframeAttributes?: any;
-
- /** This API allows the image browser to support in the RTE control to browse, create, delete, and upload the image files to the specified current directory.
- * @Default {null}
- */
- imageBrowser?: ImageBrowser;
-
- /** This API allows to enable the url for connecting to RTE import.
- * @Default {null}
- */
- importSettings?: ImportSettings;
-
- /** Enables/disables responsive support for the RTE control toolbar items during the window resizing time.
- * @Default {false}
- */
- isResponsive?: boolean;
-
- /** Sets the culture in the RTE when you set the localization values are needs to be assigned to the corresponding text as follows.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Sets the maximum height for the RTE outer wrapper element.
- * @Default {null}
- */
- maxHeight?: string|number;
-
- /** Sets the maximum length for the RTE outer wrapper element.
- * @Default {7000}
- */
- maxLength?: number;
-
- /** Sets the maximum width for the RTE outer wrapper element.
- * @Default {null}
- */
- maxWidth?: string|number;
-
- /** Sets the minimum height for the RTE outer wrapper element.
- * @Default {280}
- */
- minHeight?: string|number;
-
- /** Sets the minimum width for the RTE outer wrapper element.
- * @Default {400}
- */
- minWidth?: string|number;
-
- /** Sets the name in the RTE. When the name value is not initialized, the ID value is assigned to the name.
- */
- name?: string;
-
- /** Shows ClearAll icon in the RTE footer.
- * @Default {false}
- */
- showClearAll?: boolean;
-
- /** Shows the clear format in the RTE footer.
- * @Default {true}
- */
- showClearFormat?: boolean;
-
- /** Shows the Custom Table in the RTE.
- * @Default {True}
- */
- showCustomTable?: boolean;
-
- /** The showContextMenu property helps to enable custom context menu within editor area.
- * @Default {True}
- */
- showContextMenu?: boolean;
-
- /** This API is used to set the default dimensions for the image and video. When this property is set to true, the image and video dialog displays the dimension option.
- * @Default {false}
- */
- showDimensions?: boolean;
-
- /** Shows the FontOption in the RTE.
- * @Default {True}
- */
- showFontOption?: boolean;
-
- /** Shows footer in the RTE. When the footer is enabled, it displays the HTML tag, word Count, character count, clear format, resize icon and clear all the content icons, by default.
- * @Default {false}
- */
- showFooter?: boolean;
-
- /** Shows the HtmlSource in the RTE footer.
- * @Default {false}
- */
- showHtmlSource?: boolean;
-
- /** When the cursor is placed or when the text is selected in the RTE, it displays the tag info in the footer.
- * @Default {True}
- */
- showHtmlTagInfo?: boolean;
-
- /** Shows the toolbar in the RTE.
- * @Default {True}
- */
- showToolbar?: boolean;
-
- /** Counts the total characters and displays it in the RTE footer.
- * @Default {True}
- */
- showCharCount?: boolean;
-
- /** Enables or disables rounded corner UI look for RTE.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Counts the total words and displays it in the RTE footer.
- * @Default {True}
- */
- showWordCount?: boolean;
-
- /** The given number of columns render the insert table pop.
- * @Default {10}
- */
- tableColumns?: number;
-
- /** The given number of rows render the insert table pop.
- * @Default {8}
- */
- tableRows?: number;
-
- /** Sets the tools in the RTE and gets the inner display order of the corresponding group element. Tools are dependent on the toolsList property.
- * @Default {formatStyle: [format],style: [bold, italic, underline, strikethrough],alignment: [justifyLeft, justifyCenter, justifyRight, justifyFull],lists: [unorderedList, orderedList],
- * indenting: [outdent, indent],doAction: [undo, redo],links: [createLink,removeLink],images: [image],media: [video],tables: [createTable, addRowAbove, addRowBelow,
- * addColumnLeft, addColumnRight, deleteRow, deleteColumn, deleteTable]],view:[“fullScreen”,zoomIn,zoomOut],print:[print]}
- */
- tools?: Tools;
-
- /** Specifies the list of groups and order of those groups displayed in the RTE toolbar. The toolsList property is used to get the root group order and tools property is used to get the
- * inner order of the corresponding groups displayed. When the value is not specified, it gets its default display order and tools.
- * @Default {[formatStyle, font, style, effects, alignment, lists, indenting, clipboard, doAction, clear, links, images, media, tables, casing,view, customTools,print,edit]}
- */
- toolsList?: any[];
-
- /** Display the hints for the tools in the Toolbar.
- * @Default {{ associate: mouseenter, showShadow: true, position: { stem: { horizontal: left, vertical: top } }, tip: { size: { width: 5, height: 5 }, isBalloon: false }}
- */
- tooltipSettings?: any;
-
- /** Gets the undo stack limit.
- * @Default {50}
- */
- undoStackLimit?: number;
-
- /** The given string value is displayed in the editable area.
- * @Default {null}
- */
- value?: string;
-
- /** Sets the jQuery validation rules to the Rich Text Editor.
- * @Default {null}
- */
- validationRules?: any;
-
- /** Sets the jQuery validation error message to the Rich Text Editor.
- * @Default {null}
- */
- validationMessage?: any;
-
- /** Defines the width of the RTE textbox.
- * @Default {786}
- */
- width?: string|number;
-
- /** Increases and decreases the contents zoom range in percentage
- * @Default {0.05}
- */
- zoomStep?: string|number;
-
- /** Fires when changed successfully. */
- change?(e: ChangeEventArgs): void;
-
- /** Fires when the RTE is created successfully */
- create?(e: CreateEventArgs): void;
-
- /** Fires when mouse click on menu items. */
- contextMenuClick?(e: ContextMenuClickEventArgs): void;
-
- /** Fires before the RTE is destroyed. */
- destroy?(e: DestroyEventArgs): void;
-
- /** Fires when the commands are executed successfully. */
- execute?(e: ExecuteEventArgs): void;
-
- /** Fires when the keydown action is successful. */
- keydown?(e: KeydownEventArgs): void;
-
- /** Fires when the keyup action is successful. */
- keyup?(e: KeyupEventArgs): void;
+ /** returns the name of the event
+ */
+ type?: string;
- /** Fires before the RTE Edit area is rendered and after the toolbar is rendered. */
- preRender?(e: PreRenderEventArgs): void;
+ /** the current rotator id.
+ */
+ itemId?: string;
- /** Fires when the text is selected in the text area */
- select?(e: SelectEventArgs): void;
-}
+ /** returns the current slide index.
+ */
+ activeItemIndex?: number;
+ }
-export interface ChangeEventArgs {
+ export interface Fields {
- /** When the event is canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** Specifies a link for the image.
+ */
+ linkAttribute?: string;
- /** returns the RTE model
- */
- model?: any;
+ /** Specifies where to open a given link.
+ */
+ targetAttribute?: string;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** Specifies a caption for the image.
+ */
+ text?: string;
-export interface CreateEventArgs {
+ /** Specifies a caption for the thumbnail image.
+ */
+ thumbnailText?: string;
- /** When the event is canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** Specifies the URL for an thumbnail image.
+ */
+ thumbnailUrl?: string;
- /** Returns the RTE model
- */
- model?: any;
+ /** Specifies the URL for an image.
+ */
+ url?: string;
+ }
+
+ enum PagerPosition {
+
+ ///string
+ BottomLeft,
+
+ ///string
+ BottomRight,
+
+ ///string
+ Outside,
+
+ ///string
+ TopCenter,
+
+ ///string
+ TopLeft,
+
+ ///string
+ TopRight
+ }
+
+ }
+
+ class RTE extends ej.Widget {
+ static fn: RTE;
+ constructor(element: JQuery | Element, options?: RTE.Model);
+ static Locale: any;
+ model: RTE.Model;
+ defaults: RTE.Model;
+
+ /** Returns the range object.
+ * @returns {any}
+ */
+ createRange(): any;
+
+ /** Disables the RTE control.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Disables the corresponding tool in the RTE ToolBar.
+ * @returns {void}
+ */
+ disableToolbarItem(): void;
+
+ /** Enables the RTE control.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Enables the corresponding tool in the toolbar when the tool is disabled.
+ * @returns {void}
+ */
+ enableToolbarItem(): void;
+
+ /** Performs the action value based on the given command.
+ * @returns {void}
+ */
+ executeCommand(): void;
+
+ /** Focuses the RTE control.
+ * @returns {void}
+ */
+ focus(): void;
+
+ /** Gets the command status of the selected text based on the given comment in the RTE control.
+ * @returns {boolean}
+ */
+ getCommandStatus(): boolean;
+
+ /** Gets the Document from the RTE control.
+ * @returns {Document}
+ */
+ getDocument(): Document;
+
+ /** Gets the HTML string from the RTE control.
+ * @returns {HTMLElement}
+ */
+ getHtml(): HTMLElement;
+
+ /** Gets the selected HTML string from the RTE control.
+ * @returns {HTMLElement}
+ */
+ getSelectedHtml(): HTMLElement;
+
+ /** Gets the content as string from the RTE control.
+ * @returns {string}
+ */
+ getText(): string;
+
+ /** Hides the RTE control.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** Inserts new item to the target contextmenu node.
+ * @returns {void}
+ */
+ insertMenuOption(): void;
+
+ /** Add a table column at the right or left of the specified cell
+ * @param {boolean} If it’s true, add a column at the left of the cell, otherwise add a column at the right of the cell
+ * @param {JQuery} Column will be added based on the given cell element
+ * @returns {HTMLElement}
+ */
+ insertColumn(before?: boolean, cell?: JQuery): HTMLElement;
+
+ /** To add a table row below or above the specified cell.
+ * @param {boolean} If it’s true, add a row before the cell, otherwise add a row after the cell
+ * @param {JQuery} Row will be added based on the given cell element
+ * @returns {HTMLElement}
+ */
+ insertRow(before?: boolean, cell?: JQuery): HTMLElement;
+
+ /** This method helps to insert/paste the content at the current cursor (caret) position or the selected content to be replaced with our text by passing the value as parameter to the
+ * pasteContent method in the Editor.
+ * @returns {void}
+ */
+ pasteContent(): void;
+
+ /** Refreshes the RTE control.
+ * @returns {void}
+ */
+ refresh(): void;
+
+ /** Removes the specified table column.
+ * @param {JQuery} Remove the given column element
+ * @returns {void}
+ */
+ removeColumn(cell?: JQuery): void;
+
+ /** Removes the specified table row.
+ * @param {JQuery} Remove the given row element
+ * @returns {void}
+ */
+ removeRow(cell?: JQuery): void;
+
+ /** Deletes the specified table.
+ * @param {JQuery} Remove the given table
+ * @returns {void}
+ */
+ removeTable(table?: JQuery): void;
+
+ /** Removes the target menu item from the RTE contextmenu.
+ * @returns {void}
+ */
+ removeMenuOption(): void;
+
+ /** Removes the given tool from the RTE Toolbar.
+ * @returns {void}
+ */
+ removeToolbarItem(): void;
+
+ /** Selects all the contents within the RTE.
+ * @returns {void}
+ */
+ selectAll(): void;
+
+ /** Selects the contents in the given range.
+ * @returns {void}
+ */
+ selectRange(): void;
+
+ /** Sets the color picker model type rendered initially in the RTE control.
+ * @returns {void}
+ */
+ setColorPickerType(): void;
+
+ /** Sets the HTML string from the RTE control.
+ * @returns {void}
+ */
+ setHtml(): void;
+
+ /** Displays the RTE control.
+ * @returns {void}
+ */
+ show(): void;
+ }
+ export namespace RTE {
+
+ export interface Model {
+
+ /** Enables/disables the editing of the content.
+ * @Default {True}
+ */
+ allowEditing?: boolean;
+
+ /** RTE control can be accessed through the keyboard shortcut keys.
+ * @Default {True}
+ */
+ allowKeyboardNavigation?: boolean;
+
+ /** When the property is set to true, it focuses the RTE at the time of rendering.
+ * @Default {false}
+ */
+ autoFocus?: boolean;
+
+ /** Based on the content size, its height is adjusted instead of adding the scrollbar.
+ * @Default {false}
+ */
+ autoHeight?: boolean;
+
+ /** Sets the colorCode to display the color of the fontColor and backgroundColor in the font tools of the RTE.
+ * @Default {[000000, FFFFFF, C4C4C4, ADADAD, 595959, 262626, 4f81bd, dbe5f1, b8cce4, 95b3d7, 366092, 244061, c0504d, f2dcdb, e5b9b7, d99694, 953734,632423, 9bbb59,
+ * ebf1dd, d7e3bc, c3d69b, 76923c, 4f6128, 8064a2, e5e0ec, ccc1d9, b2a2c7, 5f497a, 3f3151, f79646, fdeada, fbd5b5, fac08f,e36c09, 974806]}
+ */
+ colorCode?: any;
+
+ /** The number of columns given are rendered in the color palate popup.
+ * @Default {6}
+ */
+ colorPaletteColumns?: number;
+
+ /** The number of rows given are rendered in the color palate popup.
+ * @Default {6}
+ */
+ colorPaletteRows?: number;
+
+ /** Sets the root class for the RTE theme. This cssClass API helps the usage of custom skinning option for the RTE control by including this root class in CSS.
+ */
+ cssClass?: string;
+
+ /** Enables/disables the RTE control’s accessibility or interaction.
+ * @Default {True}
+ */
+ enabled?: boolean;
+
+ /** When the property is set to true, it returns the encrypted text.
+ * @Default {false}
+ */
+ enableHtmlEncode?: boolean;
+
+ /** Maintain the values of the RTE after page reload.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Shows the resize icon and enables the resize option in the RTE.
+ * @Default {True}
+ */
+ enableResize?: boolean;
+
+ /** Shows the RTE in the RTL direction.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Formats the contents based on the XHTML rules.
+ * @Default {false}
+ */
+ enableXHTML?: boolean;
+
+ /** Enables the tab key action with the RichTextEditor content.
+ * @Default {True}
+ */
+ enableTabKeyNavigation?: boolean;
+
+ /** This API allows to enable url and fileName for pdf export.
+ * @Default {null}
+ */
+ exportToPdfSettings?: ExportToPdfSettings;
+
+ /** This API allows to enable url and fileName for word export.
+ * @Default {null}
+ */
+ exportToWordSettings?: ExportToWordSettings;
+
+ /** Load the external CSS file inside Iframe.
+ * @Default {null}
+ */
+ externalCSS?: string;
+
+ /** This API allows to enable the file browser support in the RTE control to browse, create, delete and upload the files in the specified current directory.
+ * @Default {null}
+ */
+ fileBrowser?: FileBrowser;
+
+ /** Sets the fontName in the RTE.
+ * @Default {{text: Segoe UI, value: Segoe UI },{text: Arial, value: Arial,Helvetica,sans-serif },{text: Courier New, value: Courier New,Courier,Monospace },
+ * {text: Georgia, value: Georgia,serif },{text: Impact, value: Impact,Charcoal,sans-serif },{text: Lucida Console, value: Lucida Console,Monaco,Monospace },
+ * {text: Tahoma, value: Tahoma,Geneva,sans-serif },{text: Times New Roman, value: Times New Roman },{text: Trebuchet MS, value: Trebuchet MS,Helvetica,sans-serif },
+ * {text: Verdana, value: Verdana,Geneva,sans-serif}}
+ */
+ fontName?: any;
+
+ /** Sets the fontSize in the RTE.
+ * @Default {{ text: 1, value: 1 },{ text: 2 (10pt), value: 2 },{ text: 3 (12pt), value: 3 },{ text: 4 (14pt), value: 4 },{ text: 5 (18pt), value: 5 },
+ * { text: 6 (24pt), value: 6 },{ text: 7 (36pt), value: 7 }}
+ */
+ fontSize?: any;
+
+ /** Sets the format in the RTE.
+ * @Default {{ text: Paragraph, value: <p>, spriteCssClass: e-paragraph },{ text: Quotation, value: <blockquote>, spriteCssClass: e-quotation },
+ * { text: Heading 1, value: <h1>, spriteCssClass: e-h1 },{ text: Heading 2, value: <h2>, spriteCssClass: e-h2 },{ text: Heading 3, value: <h3>, spriteCssClass: e-h3 },
+ * { text: Heading 4, value: <h4>, spriteCssClass: e-h4 },{ text: Heading 5, value: <h5>, spriteCssClass: e-h5 },{ text: Heading 6, value: <h6>, spriteCssClass: e-h6}}
+ */
+ format?: string;
+
+ /** Defines the height of the RTE textbox.
+ * @Default {370}
+ */
+ height?: string | number;
+
+ /** Specifies the HTML Attributes of the ejRTE.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Sets the given attributes to the iframe body element.
+ * @Default {{}}
+ */
+ iframeAttributes?: any;
+
+ /** This API allows the image browser to support in the RTE control to browse, create, delete, and upload the image files to the specified current directory.
+ * @Default {null}
+ */
+ imageBrowser?: ImageBrowser;
+
+ /** This API allows to enable the url for connecting to RTE import.
+ * @Default {null}
+ */
+ importSettings?: ImportSettings;
+
+ /** Enables/disables responsive support for the RTE control toolbar items during the window resizing time.
+ * @Default {false}
+ */
+ isResponsive?: boolean;
+
+ /** Sets the culture in the RTE when you set the localization values are needs to be assigned to the corresponding text as follows.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Sets the maximum height for the RTE outer wrapper element.
+ * @Default {null}
+ */
+ maxHeight?: string | number;
+
+ /** Sets the maximum length for the RTE outer wrapper element.
+ * @Default {7000}
+ */
+ maxLength?: number;
+
+ /** Sets the maximum width for the RTE outer wrapper element.
+ * @Default {null}
+ */
+ maxWidth?: string | number;
+
+ /** Sets the minimum height for the RTE outer wrapper element.
+ * @Default {280}
+ */
+ minHeight?: string | number;
+
+ /** Sets the minimum width for the RTE outer wrapper element.
+ * @Default {400}
+ */
+ minWidth?: string | number;
+
+ /** Sets the name in the RTE. When the name value is not initialized, the ID value is assigned to the name.
+ */
+ name?: string;
+
+ /** Shows ClearAll icon in the RTE footer.
+ * @Default {false}
+ */
+ showClearAll?: boolean;
+
+ /** Shows the clear format in the RTE footer.
+ * @Default {true}
+ */
+ showClearFormat?: boolean;
+
+ /** Shows the Custom Table in the RTE.
+ * @Default {True}
+ */
+ showCustomTable?: boolean;
+
+ /** The showContextMenu property helps to enable custom context menu within editor area.
+ * @Default {True}
+ */
+ showContextMenu?: boolean;
+
+ /** This API is used to set the default dimensions for the image and video. When this property is set to true, the image and video dialog displays the dimension option.
+ * @Default {false}
+ */
+ showDimensions?: boolean;
+
+ /** Shows the FontOption in the RTE.
+ * @Default {True}
+ */
+ showFontOption?: boolean;
+
+ /** Shows footer in the RTE. When the footer is enabled, it displays the HTML tag, word Count, character count, clear format, resize icon and clear all the content icons, by default.
+ * @Default {false}
+ */
+ showFooter?: boolean;
+
+ /** Shows the HtmlSource in the RTE footer.
+ * @Default {false}
+ */
+ showHtmlSource?: boolean;
+
+ /** When the cursor is placed or when the text is selected in the RTE, it displays the tag info in the footer.
+ * @Default {True}
+ */
+ showHtmlTagInfo?: boolean;
+
+ /** Shows the toolbar in the RTE.
+ * @Default {True}
+ */
+ showToolbar?: boolean;
+
+ /** Counts the total characters and displays it in the RTE footer.
+ * @Default {True}
+ */
+ showCharCount?: boolean;
+
+ /** Enables or disables rounded corner UI look for RTE.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Counts the total words and displays it in the RTE footer.
+ * @Default {True}
+ */
+ showWordCount?: boolean;
+
+ /** The given number of columns render the insert table pop.
+ * @Default {10}
+ */
+ tableColumns?: number;
+
+ /** The given number of rows render the insert table pop.
+ * @Default {8}
+ */
+ tableRows?: number;
+
+ /** Sets the tools in the RTE and gets the inner display order of the corresponding group element. Tools are dependent on the toolsList property.
+ * @Default {formatStyle: [format],style: [bold, italic, underline, strikethrough],alignment: [justifyLeft, justifyCenter, justifyRight, justifyFull],lists: [unorderedList, orderedList],
+ * indenting: [outdent, indent],doAction: [undo, redo],links: [createLink,removeLink],images: [image],media: [video],tables: [createTable, addRowAbove, addRowBelow,
+ * addColumnLeft, addColumnRight, deleteRow, deleteColumn, deleteTable]],view:[“fullScreenâ€,zoomIn,zoomOut],print:[print]}
+ */
+ tools?: Tools;
+
+ /** Specifies the list of groups and order of those groups displayed in the RTE toolbar. The toolsList property is used to get the root group order and tools property is used to get the
+ * inner order of the corresponding groups displayed. When the value is not specified, it gets its default display order and tools.
+ * @Default {[formatStyle, font, style, effects, alignment, lists, indenting, clipboard, doAction, clear, links, images, media, tables, casing,view, customTools,print,edit]}
+ */
+ toolsList?: any[];
+
+ /** Display the hints for the tools in the Toolbar.
+ * @Default {{ associate: mouseenter, showShadow: true, position: { stem: { horizontal: left, vertical: top } }, tip: { size: { width: 5, height: 5 }, isBalloon: false }}
+ */
+ tooltipSettings?: any;
+
+ /** Gets the undo stack limit.
+ * @Default {50}
+ */
+ undoStackLimit?: number;
+
+ /** The given string value is displayed in the editable area.
+ * @Default {null}
+ */
+ value?: string;
+
+ /** Sets the jQuery validation rules to the Rich Text Editor.
+ * @Default {null}
+ */
+ validationRules?: any;
+
+ /** Sets the jQuery validation error message to the Rich Text Editor.
+ * @Default {null}
+ */
+ validationMessage?: any;
+
+ /** Defines the width of the RTE textbox.
+ * @Default {786}
+ */
+ width?: string | number;
+
+ /** Increases and decreases the contents zoom range in percentage
+ * @Default {0.05}
+ */
+ zoomStep?: string | number;
+
+ /** Fires when changed successfully. */
+ change?(e: ChangeEventArgs): void;
+
+ /** Fires when the RTE is created successfully */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when mouse click on menu items. */
+ contextMenuClick?(e: ContextMenuClickEventArgs): void;
+
+ /** Fires before the RTE is destroyed. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Fires when the commands are executed successfully. */
+ execute?(e: ExecuteEventArgs): void;
+
+ /** Fires when the keydown action is successful. */
+ keydown?(e: KeydownEventArgs): void;
+
+ /** Fires when the keyup action is successful. */
+ keyup?(e: KeyupEventArgs): void;
- /** Returns the name of the event
- */
- type?: string;
-}
+ /** Fires before the RTE Edit area is rendered and after the toolbar is rendered. */
+ preRender?(e: PreRenderEventArgs): void;
-export interface ContextMenuClickEventArgs {
+ /** Fires when the text is selected in the text area */
+ select?(e: SelectEventArgs): void;
+ }
- /** returns clicked menu item text.
- */
- text?: string;
+ export interface ChangeEventArgs {
- /** returns clicked menu item element.
- */
- element?: any;
+ /** When the event is canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the selected item.
- */
- selectedItem?: number;
-}
+ /** returns the RTE model
+ */
+ model?: any;
-export interface DestroyEventArgs {
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** When the event is canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface CreateEventArgs {
- /** Returns the RTE model
- */
- model?: any;
+ /** When the event is canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the name of the event
- */
- type?: string;
-}
+ /** Returns the RTE model
+ */
+ model?: any;
-export interface ExecuteEventArgs {
+ /** Returns the name of the event
+ */
+ type?: string;
+ }
- /** When the event is canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface ContextMenuClickEventArgs {
- /** Returns the RTE model
- */
- model?: any;
+ /** returns clicked menu item text.
+ */
+ text?: string;
- /** Returns the name of the event
- */
- type?: string;
-}
+ /** returns clicked menu item element.
+ */
+ element?: any;
-export interface KeydownEventArgs {
+ /** returns the selected item.
+ */
+ selectedItem?: number;
+ }
- /** When the event is canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface DestroyEventArgs {
- /** Returns the RTE model
- */
- model?: any;
+ /** When the event is canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the name of the event
- */
- type?: string;
-}
+ /** Returns the RTE model
+ */
+ model?: any;
-export interface KeyupEventArgs {
+ /** Returns the name of the event
+ */
+ type?: string;
+ }
- /** When the event is canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface ExecuteEventArgs {
- /** Returns the RTE model
- */
- model?: any;
+ /** When the event is canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the name of the event
- */
- type?: string;
-}
+ /** Returns the RTE model
+ */
+ model?: any;
-export interface PreRenderEventArgs {
+ /** Returns the name of the event
+ */
+ type?: string;
+ }
- /** When the event is canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface KeydownEventArgs {
- /** Returns the RTE model
- */
- model?: any;
+ /** When the event is canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the name of the event
- */
- type?: string;
-}
+ /** Returns the RTE model
+ */
+ model?: any;
-export interface SelectEventArgs {
+ /** Returns the name of the event
+ */
+ type?: string;
+ }
- /** When the event is canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface KeyupEventArgs {
- /** Returns the RTE model
- */
- model?: any;
+ /** When the event is canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the name of the event
- */
- type?: string;
+ /** Returns the RTE model
+ */
+ model?: any;
- /** Returns the event object
- */
- event?: any;
-}
+ /** Returns the name of the event
+ */
+ type?: string;
+ }
-export interface ExportToPdfSettings {
+ export interface PreRenderEventArgs {
- /** This API is used to receive the server-side handler for export related operations.
- */
- url?: string;
+ /** When the event is canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Specifies the file name for the exported pdf file.
- */
- fileName?: string;
-}
+ /** Returns the RTE model
+ */
+ model?: any;
-export interface ExportToWordSettings {
+ /** Returns the name of the event
+ */
+ type?: string;
+ }
- /** This API is used to receive the server-side handler for export related operations.
- */
- url?: string;
+ export interface SelectEventArgs {
- /** Specifies the file name for the exported word file.
- */
- fileName?: string;
-}
+ /** When the event is canceled; otherwise, false.
+ */
+ cancel?: boolean;
-export interface FileBrowser {
+ /** Returns the RTE model
+ */
+ model?: any;
- /** This API is used to receive the server-side handler for file related operations.
- */
- ajaxAction?: string;
+ /** Returns the name of the event
+ */
+ type?: string;
- /** Specifies the file type extension shown in the file browser window.
- */
- extensionAllow?: string;
+ /** Returns the event object
+ */
+ event?: any;
+ }
- /** Specifies the directory to perform operations like create, delete and rename folder and files, and upload the selected files to the current directory.
- */
- filePath?: string;
-}
+ export interface ExportToPdfSettings {
-export interface ImageBrowser {
+ /** This API is used to receive the server-side handler for export related operations.
+ */
+ url?: string;
- /** This API is used to receive the server-side handler for the file related operations.
- */
- ajaxAction?: string;
+ /** Specifies the file name for the exported pdf file.
+ */
+ fileName?: string;
+ }
- /** Specifies the file type extension shown in the image browser window.
- */
- extensionAllow?: string;
+ export interface ExportToWordSettings {
- /** Specifies the directory to perform operations like create, delete and rename folder and files, and upload the selected images to the current directory.
- */
- filePath?: string;
-}
+ /** This API is used to receive the server-side handler for export related operations.
+ */
+ url?: string;
-export interface ImportSettings {
+ /** Specifies the file name for the exported word file.
+ */
+ fileName?: string;
+ }
- /** This API is used to receive the server-side handler for import operations.
- */
- url?: string;
-}
+ export interface FileBrowser {
-export interface ToolsCustomOrderedList {
+ /** This API is used to receive the server-side handler for file related operations.
+ */
+ ajaxAction?: string;
- /** Specifies the name for customOrderedList item.
- */
- name?: string;
+ /** Specifies the file type extension shown in the file browser window.
+ */
+ extensionAllow?: string;
- /** Specifies the title for customOrderedList item.
- */
- tooltip?: string;
+ /** Specifies the directory to perform operations like create, delete and rename folder and files, and upload the selected files to the current directory.
+ */
+ filePath?: string;
+ }
- /** Specifies the styles for customOrderedList item.
- */
- css?: string;
+ export interface ImageBrowser {
- /** Specifies the text for customOrderedList item.
- */
- text?: string;
+ /** This API is used to receive the server-side handler for the file related operations.
+ */
+ ajaxAction?: string;
- /** Specifies the list style for customOrderedList item.
- */
- listStyle?: string;
+ /** Specifies the file type extension shown in the image browser window.
+ */
+ extensionAllow?: string;
- /** Specifies the image for customOrderedList item.
- */
- listImage?: string;
-}
+ /** Specifies the directory to perform operations like create, delete and rename folder and files, and upload the selected images to the current directory.
+ */
+ filePath?: string;
+ }
-export interface ToolsCustomUnorderedList {
+ export interface ImportSettings {
- /** Specifies the name for customUnorderedList item.
- */
- name?: string;
+ /** This API is used to receive the server-side handler for import operations.
+ */
+ url?: string;
+ }
- /** Specifies the title for customUnorderedList item.
- */
- tooltip?: string;
+ export interface ToolsCustomOrderedList {
- /** Specifies the styles for customUnorderedList item.
- */
- css?: string;
+ /** Specifies the name for customOrderedList item.
+ */
+ name?: string;
- /** Specifies the text for customUnorderedList item.
- */
- text?: string;
+ /** Specifies the title for customOrderedList item.
+ */
+ tooltip?: string;
- /** Specifies the list style for customUnorderedList item.
- */
- listStyle?: string;
+ /** Specifies the styles for customOrderedList item.
+ */
+ css?: string;
- /** Specifies the image for customUnorderedList item.
- */
- listImage?: string;
-}
+ /** Specifies the text for customOrderedList item.
+ */
+ text?: string;
-export interface Tools {
+ /** Specifies the list style for customOrderedList item.
+ */
+ listStyle?: string;
- /** Specifies the alignment tools and the display order of this tool in the RTE toolbar.
- */
- alignment?: any;
+ /** Specifies the image for customOrderedList item.
+ */
+ listImage?: string;
+ }
- /** Specifies the casing tools and the display order of this tool in the RTE toolbar.
- */
- casing?: any[];
+ export interface ToolsCustomUnorderedList {
- /** Specifies the clear tools and the display order of this tool in the RTE toolbar.
- */
- clear?: any[];
-
- /** Specifies the clipboard tools and the display order of this tool in the RTE toolbar.
- */
- clipboard?: any[];
-
- /** Specifies the edit tools and the displays tool in the RTE toolbar.
- */
- edit?: any[];
-
- /** Specifies the doAction tools and the display order of this tool in the RTE toolbar.
- */
- doAction?: any[];
-
- /** Specifies the effect of tools and the display order of this tool in RTE toolbar.
- */
- effects?: any[];
-
- /** Specifies the font tools and the display order of this tool in the RTE toolbar.
- */
- font?: any[];
-
- /** Specifies the formatStyle tools and the display order of this tool in the RTE toolbar.
- */
- formatStyle?: any[];
-
- /** Specifies the image tools and the display order of this tool in the RTE toolbar.
- */
- images?: any[];
-
- /** Specifies the indent tools and the display order of this tool in the RTE toolbar.
- */
- indenting?: any[];
-
- /** Specifies the link tools and the display order of this tool in the RTE toolbar.
- */
- links?: any[];
-
- /** Specifies the list tools and the display order of this tool in the RTE toolbar.
- */
- lists?: any[];
-
- /** Specifies the media tools and the display order of this tool in the RTE toolbar.
- */
- media?: any[];
-
- /** Specifies the style tools and the display order of this tool in the RTE toolbar.
- */
- style?: any[];
-
- /** Specifies the table tools and the display order of this tool in the RTE toolbar.
- */
- tables?: any[];
-
- /** Specifies the view tools and the display order of this tool in the RTE toolbar.
- */
- view?: any[];
-
- /** Specifies the print tools and the display order of this tool in the RTE toolbar.
- */
- print?: any[];
-
- /** Specifies the importExport tools and the display order of this tool in the RTE toolbar.
- */
- importExport?: any[];
-
- /** Specifies the customOrderedList tools and the display order of this tool in the RTE toolbar.
- */
- customOrderedList?: ToolsCustomOrderedList[];
-
- /** Specifies the customUnOrderedList tools and the display order of this tool in the RTE toolbar.
- */
- customUnorderedList?: ToolsCustomUnorderedList[];
-}
-}
-
-class Slider extends ej.Widget {
- static fn: Slider;
- constructor(element: JQuery | Element, options?: Slider.Model);
- static Locale: any;
- model: Slider.Model;
- defaults: Slider.Model;
-
- /** To disable the slider
- * @returns {void}
- */
- disable(): void;
-
- /** To enable the slider
- * @returns {void}
- */
- enable(): void;
-
- /** To get value from slider handle
- * @returns {number}
- */
- getValue(): number;
-
- /** To set value to slider handle.By default animation is false while set the value. If you want to enable the animation, pass the enableAnimation as true to this method.
- * @returns {void}
- */
- setValue(): void;
-}
-export namespace Slider {
-
-export interface Model {
-
- /** Specifies the allowMouseWheel of the slider.
- * @Default {false}
- */
- allowMouseWheel?: boolean;
-
- /** Specifies the animationSpeed of the slider.
- * @Default {500}
- */
- animationSpeed?: number;
-
- /** Specify the CSS class to slider to achieve custom theme.
- */
- cssClass?: string;
-
- /** Specifies the animation behavior of the slider.
- * @Default {true}
- */
- enableAnimation?: boolean;
-
- /** Specifies the state of the slider.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Specify the enablePersistence to slider to save current model value to browser cookies for state maintains
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Specifies the Right to Left Direction of the slider.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Specifies the height of the slider.
- * @Default {14}
- */
- height?: string;
-
- /** Specifies the HTML Attributes of the ejSlider.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Specifies the incremental step value of the slider.
- * @Default {1}
- */
- incrementStep?: number;
-
- /** Specifies the distance between two major (large) ticks from the scale of the slider.
- * @Default {10}
- */
- largeStep?: number;
-
- /** Specifies the ending value of the slider.
- * @Default {100}
- */
- maxValue?: number;
-
- /** Specifies the starting value of the slider.
- * @Default {0}
- */
- minValue?: number;
-
- /** Specifies the orientation of the slider.
- * @Default {ej.orientation.Horizontal}
- */
- orientation?: ej.Orientation|string;
-
- /** Specifies the readOnly of the slider.
- * @Default {false}
- */
- readOnly?: boolean;
-
- /** Specifies the rounded corner behavior for slider.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Shows/Hide the major (large) and minor (small) ticks in the scale of the slider.
- * @Default {false}
- */
- showScale?: boolean;
-
- /** Specifies the small ticks from the scale of the slider.
- * @Default {true}
- */
- showSmallTicks?: boolean;
-
- /** Specifies the showTooltip to shows the current Slider value, while moving the Slider handle or clicking on the slider handle of the slider.
- * @Default {true}
- */
- showTooltip?: boolean;
-
- /** Specifies the sliderType of the slider.
- * @Default {ej.SliderType.Default}
- */
- sliderType?: ej.slider.sliderType|string;
-
- /** Specifies the distance between two minor (small) ticks from the scale of the slider.
- * @Default {1}
- */
- smallStep?: number;
-
- /** Specifies the value of the slider. But it's not applicable for range slider. To range slider we can use values property.
- * @Default {0}
- */
- value?: number;
-
- /** Specifies the values of the range slider. But it's not applicable for default and minRange sliders. we can use value property for default and minRange sliders.
- * @Default {[minValue,maxValue]}
- */
- values?: any[];
-
- /** Specifies the width of the slider.
- * @Default {100%}
- */
- width?: string;
-
- /** Fires once Slider control value is changed successfully. */
- change?(e: ChangeEventArgs): void;
-
- /** Fires once Slider control has been created successfully. */
- create?(e: CreateEventArgs): void;
-
- /** Fires when Slider control has been destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
-
- /** Fires once Slider control is sliding successfully. */
- slide?(e: SlideEventArgs): void;
-
- /** Fires once Slider control is started successfully. */
- start?(e: StartEventArgs): void;
-
- /** Fires when Slider control is stopped successfully. */
- stop?(e: StopEventArgs): void;
-
- /** Fires when display the custom tooltip */
- tooltipChange?(e: TooltipChangeEventArgs): void;
-}
-
-export interface ChangeEventArgs {
+ /** Specifies the name for customUnorderedList item.
+ */
+ name?: string;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** Specifies the title for customUnorderedList item.
+ */
+ tooltip?: string;
- /** returns current handle number or index
- */
- sliderIndex?: number;
+ /** Specifies the styles for customUnorderedList item.
+ */
+ css?: string;
- /** returns slider id.
- */
- id?: string;
-
- /** returns the slider model.
- */
- model?: ej.Slider.Model;
+ /** Specifies the text for customUnorderedList item.
+ */
+ text?: string;
- /** returns the name of the event.
- */
- type?: string;
+ /** Specifies the list style for customUnorderedList item.
+ */
+ listStyle?: string;
- /** returns the slider value.
- */
- value?: number;
+ /** Specifies the image for customUnorderedList item.
+ */
+ listImage?: string;
+ }
- /** returns true if event triggered by interaction else returns false.
- */
- isInteraction?: boolean;
-}
+ export interface Tools {
-export interface CreateEventArgs {
+ /** Specifies the alignment tools and the display order of this tool in the RTE toolbar.
+ */
+ alignment?: any;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** Specifies the casing tools and the display order of this tool in the RTE toolbar.
+ */
+ casing?: any[];
- /** returns the slider model
- */
- model?: ej.Slider.Model;
+ /** Specifies the clear tools and the display order of this tool in the RTE toolbar.
+ */
+ clear?: any[];
+
+ /** Specifies the clipboard tools and the display order of this tool in the RTE toolbar.
+ */
+ clipboard?: any[];
+
+ /** Specifies the edit tools and the displays tool in the RTE toolbar.
+ */
+ edit?: any[];
+
+ /** Specifies the doAction tools and the display order of this tool in the RTE toolbar.
+ */
+ doAction?: any[];
+
+ /** Specifies the effect of tools and the display order of this tool in RTE toolbar.
+ */
+ effects?: any[];
+
+ /** Specifies the font tools and the display order of this tool in the RTE toolbar.
+ */
+ font?: any[];
+
+ /** Specifies the formatStyle tools and the display order of this tool in the RTE toolbar.
+ */
+ formatStyle?: any[];
+
+ /** Specifies the image tools and the display order of this tool in the RTE toolbar.
+ */
+ images?: any[];
+
+ /** Specifies the indent tools and the display order of this tool in the RTE toolbar.
+ */
+ indenting?: any[];
+
+ /** Specifies the link tools and the display order of this tool in the RTE toolbar.
+ */
+ links?: any[];
+
+ /** Specifies the list tools and the display order of this tool in the RTE toolbar.
+ */
+ lists?: any[];
+
+ /** Specifies the media tools and the display order of this tool in the RTE toolbar.
+ */
+ media?: any[];
+
+ /** Specifies the style tools and the display order of this tool in the RTE toolbar.
+ */
+ style?: any[];
+
+ /** Specifies the table tools and the display order of this tool in the RTE toolbar.
+ */
+ tables?: any[];
+
+ /** Specifies the view tools and the display order of this tool in the RTE toolbar.
+ */
+ view?: any[];
+
+ /** Specifies the print tools and the display order of this tool in the RTE toolbar.
+ */
+ print?: any[];
+
+ /** Specifies the importExport tools and the display order of this tool in the RTE toolbar.
+ */
+ importExport?: any[];
+
+ /** Specifies the customOrderedList tools and the display order of this tool in the RTE toolbar.
+ */
+ customOrderedList?: ToolsCustomOrderedList[];
+
+ /** Specifies the customUnOrderedList tools and the display order of this tool in the RTE toolbar.
+ */
+ customUnorderedList?: ToolsCustomUnorderedList[];
+ }
+ }
+
+ class Slider extends ej.Widget {
+ static fn: Slider;
+ constructor(element: JQuery | Element, options?: Slider.Model);
+ static Locale: any;
+ model: Slider.Model;
+ defaults: Slider.Model;
+
+ /** To disable the slider
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** To enable the slider
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** To get value from slider handle
+ * @returns {number}
+ */
+ getValue(): number;
+
+ /** To set value to slider handle.By default animation is false while set the value. If you want to enable the animation, pass the enableAnimation as true to this method.
+ * @returns {void}
+ */
+ setValue(): void;
+ }
+ export namespace Slider {
+
+ export interface Model {
+
+ /** Specifies the allowMouseWheel of the slider.
+ * @Default {false}
+ */
+ allowMouseWheel?: boolean;
+
+ /** Specifies the animationSpeed of the slider.
+ * @Default {500}
+ */
+ animationSpeed?: number;
+
+ /** Specify the CSS class to slider to achieve custom theme.
+ */
+ cssClass?: string;
+
+ /** Specifies the animation behavior of the slider.
+ * @Default {true}
+ */
+ enableAnimation?: boolean;
+
+ /** Specifies the state of the slider.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Specify the enablePersistence to slider to save current model value to browser cookies for state maintains
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Specifies the Right to Left Direction of the slider.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Specifies the height of the slider.
+ * @Default {14}
+ */
+ height?: string;
+
+ /** Specifies the HTML Attributes of the ejSlider.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Specifies the incremental step value of the slider.
+ * @Default {1}
+ */
+ incrementStep?: number;
+
+ /** Specifies the distance between two major (large) ticks from the scale of the slider.
+ * @Default {10}
+ */
+ largeStep?: number;
+
+ /** Specifies the ending value of the slider.
+ * @Default {100}
+ */
+ maxValue?: number;
+
+ /** Specifies the starting value of the slider.
+ * @Default {0}
+ */
+ minValue?: number;
+
+ /** Specifies the orientation of the slider.
+ * @Default {ej.orientation.Horizontal}
+ */
+ orientation?: ej.Orientation | string;
+
+ /** Specifies the readOnly of the slider.
+ * @Default {false}
+ */
+ readOnly?: boolean;
+
+ /** Specifies the rounded corner behavior for slider.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Shows/Hide the major (large) and minor (small) ticks in the scale of the slider.
+ * @Default {false}
+ */
+ showScale?: boolean;
+
+ /** Specifies the small ticks from the scale of the slider.
+ * @Default {true}
+ */
+ showSmallTicks?: boolean;
+
+ /** Specifies the showTooltip to shows the current Slider value, while moving the Slider handle or clicking on the slider handle of the slider.
+ * @Default {true}
+ */
+ showTooltip?: boolean;
+
+ /** Specifies the sliderType of the slider.
+ * @Default {ej.SliderType.Default}
+ */
+ sliderType?: ej.slider.sliderType | string;
+
+ /** Specifies the distance between two minor (small) ticks from the scale of the slider.
+ * @Default {1}
+ */
+ smallStep?: number;
+
+ /** Specifies the value of the slider. But it's not applicable for range slider. To range slider we can use values property.
+ * @Default {0}
+ */
+ value?: number;
+
+ /** Specifies the values of the range slider. But it's not applicable for default and minRange sliders. we can use value property for default and minRange sliders.
+ * @Default {[minValue,maxValue]}
+ */
+ values?: any[];
+
+ /** Specifies the width of the slider.
+ * @Default {100%}
+ */
+ width?: string;
+
+ /** Fires once Slider control value is changed successfully. */
+ change?(e: ChangeEventArgs): void;
+
+ /** Fires once Slider control has been created successfully. */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when Slider control has been destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Fires once Slider control is sliding successfully. */
+ slide?(e: SlideEventArgs): void;
+
+ /** Fires once Slider control is started successfully. */
+ start?(e: StartEventArgs): void;
+
+ /** Fires when Slider control is stopped successfully. */
+ stop?(e: StopEventArgs): void;
+
+ /** Fires when display the custom tooltip */
+ tooltipChange?(e: TooltipChangeEventArgs): void;
+ }
+
+ export interface ChangeEventArgs {
- /** returns the name of the event
- */
- type?: string;
-}
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
-export interface DestroyEventArgs {
+ /** returns current handle number or index
+ */
+ sliderIndex?: number;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns slider id.
+ */
+ id?: string;
+
+ /** returns the slider model.
+ */
+ model?: ej.Slider.Model;
- /** returns the slider model
- */
- model?: ej.Slider.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface SlideEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns current handle number or index
- */
- sliderIndex?: number;
-
- /** returns slider id
- */
- id?: string;
-
- /** returns the slider model
- */
- model?: ej.Slider.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the slider value
- */
- value?: number;
-}
-
-export interface StartEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns current handle number or index
- */
- sliderIndex?: number;
-
- /** returns slider id
- */
- id?: string;
-
- /** returns the slider model
- */
- model?: ej.Slider.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the slider value
- */
- value?: number;
-}
-
-export interface StopEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns current handle number or index
- */
- sliderIndex?: number;
-
- /** returns slider id
- */
- id?: string;
-
- /** returns the slider model
- */
- model?: ej.Slider.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the slider value
- */
- value?: number;
-}
-
-export interface TooltipChangeEventArgs {
- /** Returns the cancel option value.
- */
- cancel?: boolean;
-}
-}
-namespace slider {
-enum sliderType {
-//Shows default slider
-Default,
-//Shows minRange slider
-MinRange,
-//Shows Range slider
-Range,
-}
-}
-
-class SplitButton extends ej.Widget {
- static fn: SplitButton;
- constructor(element: JQuery | Element, options?: SplitButton.Model);
- static Locale: any;
- model: SplitButton.Model;
- defaults: SplitButton.Model;
-
- /** Destroy the split button widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
- * @returns {void}
- */
- destroy(): void;
-
- /** To disable the split button
- * @returns {void}
- */
- disable(): void;
-
- /** To Enable the split button
- * @returns {void}
- */
- enable(): void;
-
- /** To hide the list content of the split button.
- * @returns {void}
- */
- hide(): void;
-
- /** To show the list content of the split button.
- * @returns {void}
- */
- show(): void;
-}
-export namespace SplitButton {
-
-export interface Model {
-
- /** Specifies the arrowPosition of the Split or Dropdown Button.See arrowPosition
- * @Default {ej.ArrowPosition.Right}
- */
- arrowPosition?: string|ej.ArrowPosition;
-
- /** Specifies the buttonMode like Split or Dropdown Button.See ButtonMode
- * @Default {ej.ButtonMode.Split}
- */
- buttonMode?: string|ej.ButtonMode;
-
- /** Specifies the contentType of the Split Button.See ContentType
- * @Default {ej.ContentType.TextOnly}
- */
- contentType?: string|ej.ContentType;
-
- /** Set the root class for Split Button control theme
- */
- cssClass?: string;
-
- /** Specifies the disabling of Split Button if enabled is set to false.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Specifies the enableRTL property for Split Button while initialization.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Specifies the height of the Split Button.
- * @Default {“”}
- */
- height?: string|number;
-
- /** Specifies the HTML Attributes of the Split Button.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Specifies the imagePosition of the Split Button.See imagePositions
- * @Default {ej.ImagePosition.ImageRight}
- */
- imagePosition?: string|ej.ImagePosition;
-
- /** Specifies the image content for Split Button while initialization.
- */
- prefixIcon?: string;
-
- /** Specifies the showRoundedCorner property for Split Button while initialization.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Specifies the size of the Button. See ButtonSize
- * @Default {ej.ButtonSize.Normal}
- */
- size?: string|ej.ButtonSize;
-
- /** Specifies the image content for Split Button while initialization.
- */
- suffixIcon?: string;
-
- /** Specifies the list content for Split Button while initialization
- */
- targetID?: string;
-
- /** Specifies the text content for Split Button while initialization.
- */
- text?: string;
-
- /** Specifies the width of the Split Button.
- * @Default {“”}
- */
- width?: string|number;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** Fires before menu of the split button control is opened. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ /** returns the slider value.
+ */
+ value?: number;
- /** Fires when Button control is clicked successfully */
- click?(e: ClickEventArgs): void;
+ /** returns true if event triggered by interaction else returns false.
+ */
+ isInteraction?: boolean;
+ }
- /** Fires before the list content of Button control is closed */
- close?(e: CloseEventArgs): void;
+ export interface CreateEventArgs {
- /** Fires after Split Button control is created. */
- create?(e: CreateEventArgs): void;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Fires when the Split Button is destroyed successfully */
- destroy?(e: DestroyEventArgs): void;
+ /** returns the slider model
+ */
+ model?: ej.Slider.Model;
- /** Fires when a menu item is Hovered out successfully */
- itemMouseOut?(e: ItemMouseOutEventArgs): void;
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** Fires when a menu item is Hovered in successfully */
- itemMouseOver?(e: ItemMouseOverEventArgs): void;
+ export interface DestroyEventArgs {
- /** Fires when a menu item is clicked successfully */
- itemSelected?(e: ItemSelectedEventArgs): void;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Fires before the list content of Button control is opened */
- open?(e: OpenEventArgs): void;
-}
+ /** returns the slider model
+ */
+ model?: ej.Slider.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface SlideEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns current handle number or index
+ */
+ sliderIndex?: number;
+
+ /** returns slider id
+ */
+ id?: string;
+
+ /** returns the slider model
+ */
+ model?: ej.Slider.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the slider value
+ */
+ value?: number;
+ }
+
+ export interface StartEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns current handle number or index
+ */
+ sliderIndex?: number;
+
+ /** returns slider id
+ */
+ id?: string;
+
+ /** returns the slider model
+ */
+ model?: ej.Slider.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the slider value
+ */
+ value?: number;
+ }
+
+ export interface StopEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns current handle number or index
+ */
+ sliderIndex?: number;
+
+ /** returns slider id
+ */
+ id?: string;
+
+ /** returns the slider model
+ */
+ model?: ej.Slider.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the slider value
+ */
+ value?: number;
+ }
+
+ export interface TooltipChangeEventArgs {
+ /** Returns the cancel option value.
+ */
+ cancel?: boolean;
+ }
+ }
+ namespace slider {
+ enum sliderType {
+ //Shows default slider
+ Default,
+ //Shows minRange slider
+ MinRange,
+ //Shows Range slider
+ Range,
+ }
+ }
+
+ class SplitButton extends ej.Widget {
+ static fn: SplitButton;
+ constructor(element: JQuery | Element, options?: SplitButton.Model);
+ static Locale: any;
+ model: SplitButton.Model;
+ defaults: SplitButton.Model;
+
+ /** Destroy the split button widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** To disable the split button
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** To Enable the split button
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** To hide the list content of the split button.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** To show the list content of the split button.
+ * @returns {void}
+ */
+ show(): void;
+ }
+ export namespace SplitButton {
+
+ export interface Model {
+
+ /** Specifies the arrowPosition of the Split or Dropdown Button.See arrowPosition
+ * @Default {ej.ArrowPosition.Right}
+ */
+ arrowPosition?: string | ej.ArrowPosition;
+
+ /** Specifies the buttonMode like Split or Dropdown Button.See ButtonMode
+ * @Default {ej.ButtonMode.Split}
+ */
+ buttonMode?: string | ej.ButtonMode;
+
+ /** Specifies the contentType of the Split Button.See ContentType
+ * @Default {ej.ContentType.TextOnly}
+ */
+ contentType?: string | ej.ContentType;
+
+ /** Set the root class for Split Button control theme
+ */
+ cssClass?: string;
+
+ /** Specifies the disabling of Split Button if enabled is set to false.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Specifies the enableRTL property for Split Button while initialization.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Specifies the height of the Split Button.
+ * @Default {“â€}
+ */
+ height?: string | number;
+
+ /** Specifies the HTML Attributes of the Split Button.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Specifies the imagePosition of the Split Button.See imagePositions
+ * @Default {ej.ImagePosition.ImageRight}
+ */
+ imagePosition?: string | ej.ImagePosition;
+
+ /** Specifies the image content for Split Button while initialization.
+ */
+ prefixIcon?: string;
+
+ /** Specifies the showRoundedCorner property for Split Button while initialization.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Specifies the size of the Button. See ButtonSize
+ * @Default {ej.ButtonSize.Normal}
+ */
+ size?: string | ej.ButtonSize;
+
+ /** Specifies the image content for Split Button while initialization.
+ */
+ suffixIcon?: string;
+
+ /** Specifies the list content for Split Button while initialization
+ */
+ targetID?: string;
+
+ /** Specifies the text content for Split Button while initialization.
+ */
+ text?: string;
+
+ /** Specifies the width of the Split Button.
+ * @Default {“â€}
+ */
+ width?: string | number;
-export interface BeforeOpenEventArgs {
+ /** Fires before menu of the split button control is opened. */
+ beforeOpen?(e: BeforeOpenEventArgs): void;
- /** returns the cancel option value
- */
- cancel?: boolean;
+ /** Fires when Button control is clicked successfully */
+ click?(e: ClickEventArgs): void;
- /** returns the split button model
- */
- model?: ej.SplitButton.Model;
+ /** Fires before the list content of Button control is closed */
+ close?(e: CloseEventArgs): void;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** Fires after Split Button control is created. */
+ create?(e: CreateEventArgs): void;
-export interface ClickEventArgs {
+ /** Fires when the Split Button is destroyed successfully */
+ destroy?(e: DestroyEventArgs): void;
- /** returns the cancel option value
- */
- cancel?: boolean;
+ /** Fires when a menu item is Hovered out successfully */
+ itemMouseOut?(e: ItemMouseOutEventArgs): void;
- /** returns the split button model
- */
- model?: ej.SplitButton.Model;
+ /** Fires when a menu item is Hovered in successfully */
+ itemMouseOver?(e: ItemMouseOverEventArgs): void;
- /** returns the name of the event
- */
- type?: string;
+ /** Fires when a menu item is clicked successfully */
+ itemSelected?(e: ItemSelectedEventArgs): void;
- /** returns the target of the current object.
- */
- target?: any;
+ /** Fires before the list content of Button control is opened */
+ open?(e: OpenEventArgs): void;
+ }
- /** return the button state
- */
- status?: boolean;
-}
+ export interface BeforeOpenEventArgs {
-export interface CloseEventArgs {
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
- /** returns the cancel option value
- */
- cancel?: boolean;
+ /** returns the split button model
+ */
+ model?: ej.SplitButton.Model;
- /** returns the split button model
- */
- model?: ej.SplitButton.Model;
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** returns the name of the event
- */
- type?: string;
-}
+ export interface ClickEventArgs {
-export interface CreateEventArgs {
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
- /** returns the cancel option value
- */
- cancel?: boolean;
+ /** returns the split button model
+ */
+ model?: ej.SplitButton.Model;
- /** returns the split button model
- */
- model?: ej.SplitButton.Model;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the target of the current object.
+ */
+ target?: any;
-export interface DestroyEventArgs {
+ /** return the button state
+ */
+ status?: boolean;
+ }
- /** returns the cancel option value
- */
- cancel?: boolean;
+ export interface CloseEventArgs {
- /** returns the split button model
- */
- model?: ej.SplitButton.Model;
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the split button model
+ */
+ model?: ej.SplitButton.Model;
-export interface ItemMouseOutEventArgs {
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** returns the cancel option value
- */
- cancel?: boolean;
+ export interface CreateEventArgs {
- /** returns the split button model
- */
- model?: ej.SplitButton.Model;
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the clicked menu item element
- */
- element?: any;
-
- /** return the menu item id
- */
- ID?: string;
-
- /** return the clicked menu item text
- */
- Text?: string;
-}
-
-export interface ItemMouseOverEventArgs {
-
- /** returns the cancel option value
- */
- cancel?: boolean;
-
- /** returns the split button model
- */
- model?: ej.SplitButton.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the clicked menu item element
- */
- element?: any;
-
- /** return the menu item id
- */
- ID?: string;
-
- /** return the clicked menu item text
- */
- Text?: string;
-}
-
-export interface ItemSelectedEventArgs {
-
- /** returns the cancel option value
- */
- cancel?: boolean;
-
- /** returns the split button model
- */
- model?: ej.SplitButton.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the clicked menu item element
- */
- element?: any;
-
- /** returns the selected item
- */
- selectedItem?: any;
-
- /** return the menu id
- */
- menuId?: string;
-
- /** return the clicked menu item text
- */
- menuText?: string;
-}
-
-export interface OpenEventArgs {
-
- /** returns the cancel option value
- */
- cancel?: boolean;
-
- /** returns the split button model
- */
- model?: ej.SplitButton.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-}
-enum ArrowPosition {
-//To set Left arrowPosition of the split button
-Left,
-//To set Right arrowPosition of the split button
-Right,
-//To set Top arrowPosition of the split button
-Top,
-//To set Bottom arrowPosition of the split button
-Bottom,
-}
-
-class Splitter extends ej.Widget {
- static fn: Splitter;
- constructor(element: JQuery | Element, options?: Splitter.Model);
- static Locale: any;
- model: Splitter.Model;
- defaults: Splitter.Model;
-
- /** To add a new pane to splitter control.
- * @param {string} content of pane.
- * @param {any} pane properties.
- * @param {number} index of pane.
- * @returns {HTMLElement}
- */
- addItem(content: string, property: any, index: number): HTMLElement;
-
- /** To collapse the splitter control pane.
- * @param {number} index number of pane.
- * @returns {void}
- */
- collapse(paneIndex: number): void;
-
- /** To expand the splitter control pane.
- * @param {number} index number of pane.
- * @returns {void}
- */
- expand(paneIndex: number): void;
-
- /** To refresh the splitter control pane resizing.
- * @returns {void}
- */
- refresh(): void;
-
- /** To remove a specified pane from the splitter control.
- * @param {number} index of pane.
- * @returns {void}
- */
- removeItem(index: number): void;
-}
-export namespace Splitter {
-
-export interface Model {
-
- /** Turns on keyboard interaction with the Splitter panes. You must set this property to true to access the keyboard shortcuts of ejSplitter.
- * @Default {true}
- */
- allowKeyboardNavigation?: boolean;
-
- /** Specify animation speed for the Splitter pane movement, while collapsing and expanding.
- * @Default {300}
- */
- animationSpeed?: number;
-
- /** Specify the CSS class to splitter control to achieve custom theme.
- * @Default {“”}
- */
- cssClass?: string;
-
- /** Specifies the animation behavior of the splitter.
- * @Default {true}
- */
- enableAnimation?: boolean;
-
- /** Specifies the splitter control to be displayed in right to left direction.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Specify height for splitter control.
- * @Default {null}
- */
- height?: string;
-
- /** Specifies the HTML Attributes of the Splitter.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Specify window resizing behavior for splitter control.
- * @Default {false}
- */
- isResponsive?: boolean;
-
- /** Specify the orientation for splitter control. See orientation
- * @Default {ej.orientation.Horizontal or “horizontal”}
- */
- orientation?: ej.Orientation|string;
-
- /** Specify properties for each pane like paneSize, minSize, maxSize, collapsible, expandable, resizable.
- * @Default {[]}
- */
- properties?: any[];
-
- /** Specify width for splitter control.
- * @Default {null}
- */
- width?: string;
-
- /** Fires before expanding / collapsing the split pane of splitter control. */
- beforeExpandCollapse?(e: BeforeExpandCollapseEventArgs): void;
-
- /** Fires when splitter control pane has been created. */
- create?(e: CreateEventArgs): void;
-
- /** Fires when splitter control pane has been destroyed. */
- destroy?(e: DestroyEventArgs): void;
-
- /** Fires when expand / collapse operation in splitter control pane has been performed successfully. */
- expandCollapse?(e: ExpandCollapseEventArgs): void;
-
- /** Fires when resize in splitter control pane. */
- resize?(e: ResizeEventArgs): void;
-}
-
-export interface BeforeExpandCollapseEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns collapsed pane details.
- */
- collapsed?: any;
-
- /** returns expanded pane details.
- */
- expanded?: any;
-
- /** returns the splitter model.
- */
- model?: ej.Splitter.Model;
-
- /** returns the current split bar index.
- */
- splitbarIndex?: number;
-
- /** returns the name of the event.
- */
- type?: string;
-}
-
-export interface CreateEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the splitter model.
- */
- model?: ej.Splitter.Model;
-
- /** returns the name of the event.
- */
- type?: string;
-}
-
-export interface DestroyEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the splitter model.
- */
- model?: ej.Splitter.Model;
-
- /** returns the name of the event.
- */
- type?: string;
-}
-
-export interface ExpandCollapseEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns collapsed pane details.
- */
- collapsed?: any;
-
- /** returns expanded pane details.
- */
- expanded?: any;
-
- /** returns the splitter model.
- */
- model?: ej.Splitter.Model;
-
- /** returns the current split bar index.
- */
- splitbarIndex?: number;
-
- /** returns the name of the event.
- */
- type?: string;
-}
-
-export interface ResizeEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns previous pane details.
- */
- prevPane?: any;
-
- /** returns next pane details.
- */
- nextPane?: any;
-
- /** returns the splitter model.
- */
- model?: ej.Splitter.Model;
-
- /** returns the current split bar index.
- */
- splitbarIndex?: number;
-
- /** returns the name of the event.
- */
- type?: string;
-}
-}
-
-class Tab extends ej.Widget {
- static fn: Tab;
- constructor(element: JQuery | Element, options?: Tab.Model);
- static Locale: any;
- model: Tab.Model;
- defaults: Tab.Model;
-
- /** Add new tab items with given name, URL and given index position, if index null it’s add last item.
- * @param {string} URL name / tab id.
- * @param {string} Tab Display name.
- * @param {number} Index position to placed , this is optional.
- * @param {string} specifies cssClass, this is optional.
- * @param {string} specifies id of tab, this is optional.
- * @returns {void}
- */
- addItem(URL: string, displayLabel: string, index: number, cssClass: string, id: string): void;
-
- /** To disable the tab control.
- * @returns {void}
- */
- disable(): void;
-
- /** To enable the tab control.
- * @returns {void}
- */
- enable(): void;
-
- /** This function get the number of tab rendered
- * @returns {number}
- */
- getItemsCount(): number;
-
- /** This function hides the tab control.
- * @returns {void}
- */
- hide(): void;
-
- /** This function hides the specified item tab in tab control.
- * @param {number} index of tab item.
- * @returns {void}
- */
- hideItem(index: number): void;
-
- /** Remove the given index tab item.
- * @param {number} index of tab item.
- * @returns {void}
- */
- removeItem(index: number): void;
-
- /** This function is to show the tab control.
- * @returns {void}
- */
- show(): void;
-
- /** This function helps to show the specified hidden tab item in tab control.
- * @param {number} index of tab item.
- * @returns {void}
- */
- showItem(index: number): void;
-}
-export namespace Tab {
-
-export interface Model {
-
- /** Specifies the ajaxSettings option to load the content to the Tab control.
- */
- ajaxSettings?: AjaxSettings;
-
- /** Tab items interaction with keyboard keys, like headers active navigation.
- * @Default {true}
- */
- allowKeyboardNavigation?: boolean;
-
- /** Allow to collapsing the active item, while click on the active header.
- * @Default {false}
- */
- collapsible?: boolean;
-
- /** Set the root class for Tab theme. This cssClass API helps to use custom skinning option for Tab control.
- */
- cssClass?: string;
-
- /** Disables the given tab headers and content panels.
- * @Default {[]}
- */
- disabledItemIndex?: number[];
-
- /** Specifies the animation behavior of the tab.
- * @Default {true}
- */
- enableAnimation?: boolean;
-
- /** When this property is set to false, it disables the tab control.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Enables the given tab headers and content panels.
- * @Default {[]}
- */
- enabledItemIndex?: number[];
-
- /** Save current model value to browser cookies for state maintains. While refresh the Tab control page the model value apply from browser cookies.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Display Right to Left direction for headers and panels text of tab.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Specify to enable scrolling for Tab header.
- * @Default {false}
- */
- enableTabScroll?: boolean;
-
- /** The event API to bind the action for active the tab items.
- * @Default {click}
- */
- events?: string;
-
- /** Specifies the position of Tab header as top, bottom, left or right. See below to get available Position
- * @Default {top}
- */
- headerPosition?: string | ej.Tab.Position;
-
- /** Set the height of the tab header element. Default this property value is null, so height take content height.
- * @Default {null}
- */
- headerSize?: string|number;
-
- /** Height set the outer panel element. Default this property value is null, so height take content height.
- * @Default {null}
- */
- height?: string|number;
-
- /** Adjust the content panel height for given option (content, auto and fill), by default panels height adjust based on the content.See below to get available HeightAdjustMode
- * @Default {content}
- */
- heightAdjustMode?: string | ej.Tab.HeightAdjustMode;
-
- /** Specifies to hide a pane of Tab control.
- * @Default {[]}
- */
- hiddenItemIndex?: any[];
-
- /** Specifies the HTML Attributes of the Tab.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** The idPrefix property appends the given string on the added tab item id’s in runtime.
- * @Default {ej-tab-}
- */
- idPrefix?: string;
-
- /** Specifies the Tab header in active for given index value.
- * @Default {0}
- */
- selectedItemIndex?: number;
-
- /** Display the close button for each tab items. While clicking on the close icon, particular tab item will be removed.
- * @Default {false}
- */
- showCloseButton?: boolean;
-
- /** Display the Reload button for each tab items.
- * @Default {false}
- */
- showReloadIcon?: boolean;
-
- /** Tab panels and headers to be displayed in rounded corner style.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Set the width for outer panel element, if not it’s take parent width.
- * @Default {null}
- */
- width?: string|number;
-
- /** Triggered after a tab item activated. */
- itemActive?(e: ItemActiveEventArgs): void;
-
- /** Triggered before AJAX content has been loaded. */
- ajaxBeforeLoad?(e: AjaxBeforeLoadEventArgs): void;
-
- /** Triggered if error occurs in AJAX request. */
- ajaxError?(e: AjaxErrorEventArgs): void;
-
- /** Triggered after AJAX content load action. */
- ajaxLoad?(e: AjaxLoadEventArgs): void;
-
- /** Triggered after a tab item activated. */
- ajaxSuccess?(e: AjaxSuccessEventArgs): void;
+ /** returns the split button model
+ */
+ model?: ej.SplitButton.Model;
- /** Triggered before a tab item activated. */
- beforeActive?(e: BeforeActiveEventArgs): void;
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** Triggered before a tab item remove. */
- beforeItemRemove?(e: BeforeItemRemoveEventArgs): void;
-
- /** Triggered before a tab item Create. */
- create?(e: CreateEventArgs): void;
+ export interface DestroyEventArgs {
- /** Triggered before a tab item destroy. */
- destroy?(e: DestroyEventArgs): void;
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
- /** Triggered after new tab item add */
- itemAdd?(e: ItemAddEventArgs): void;
+ /** returns the split button model
+ */
+ model?: ej.SplitButton.Model;
- /** Triggered after tab item removed. */
- itemRemove?(e: ItemRemoveEventArgs): void;
-}
+ /** returns the name of the event
+ */
+ type?: string;
+ }
-export interface ItemActiveEventArgs {
+ export interface ItemMouseOutEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
- /** returns the tab model.
- */
- model?: ej.Tab.Model;
+ /** returns the split button model
+ */
+ model?: ej.SplitButton.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the clicked menu item element
+ */
+ element?: any;
+
+ /** return the menu item id
+ */
+ ID?: string;
+
+ /** return the clicked menu item text
+ */
+ Text?: string;
+ }
+
+ export interface ItemMouseOverEventArgs {
+
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
+
+ /** returns the split button model
+ */
+ model?: ej.SplitButton.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the clicked menu item element
+ */
+ element?: any;
+
+ /** return the menu item id
+ */
+ ID?: string;
+
+ /** return the clicked menu item text
+ */
+ Text?: string;
+ }
+
+ export interface ItemSelectedEventArgs {
+
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
+
+ /** returns the split button model
+ */
+ model?: ej.SplitButton.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the clicked menu item element
+ */
+ element?: any;
+
+ /** returns the selected item
+ */
+ selectedItem?: any;
+
+ /** return the menu id
+ */
+ menuId?: string;
+
+ /** return the clicked menu item text
+ */
+ menuText?: string;
+ }
+
+ export interface OpenEventArgs {
+
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
+
+ /** returns the split button model
+ */
+ model?: ej.SplitButton.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+ }
+ enum ArrowPosition {
+ //To set Left arrowPosition of the split button
+ Left,
+ //To set Right arrowPosition of the split button
+ Right,
+ //To set Top arrowPosition of the split button
+ Top,
+ //To set Bottom arrowPosition of the split button
+ Bottom,
+ }
+
+ class Splitter extends ej.Widget {
+ static fn: Splitter;
+ constructor(element: JQuery | Element, options?: Splitter.Model);
+ static Locale: any;
+ model: Splitter.Model;
+ defaults: Splitter.Model;
+
+ /** To add a new pane to splitter control.
+ * @param {string} content of pane.
+ * @param {any} pane properties.
+ * @param {number} index of pane.
+ * @returns {HTMLElement}
+ */
+ addItem(content: string, property: any, index: number): HTMLElement;
+
+ /** To collapse the splitter control pane.
+ * @param {number} index number of pane.
+ * @returns {void}
+ */
+ collapse(paneIndex: number): void;
+
+ /** To expand the splitter control pane.
+ * @param {number} index number of pane.
+ * @returns {void}
+ */
+ expand(paneIndex: number): void;
+
+ /** To refresh the splitter control pane resizing.
+ * @returns {void}
+ */
+ refresh(): void;
+
+ /** To remove a specified pane from the splitter control.
+ * @param {number} index of pane.
+ * @returns {void}
+ */
+ removeItem(index: number): void;
+ }
+ export namespace Splitter {
+
+ export interface Model {
+
+ /** Turns on keyboard interaction with the Splitter panes. You must set this property to true to access the keyboard shortcuts of ejSplitter.
+ * @Default {true}
+ */
+ allowKeyboardNavigation?: boolean;
+
+ /** Specify animation speed for the Splitter pane movement, while collapsing and expanding.
+ * @Default {300}
+ */
+ animationSpeed?: number;
+
+ /** Specify the CSS class to splitter control to achieve custom theme.
+ * @Default {“â€}
+ */
+ cssClass?: string;
+
+ /** Specifies the animation behavior of the splitter.
+ * @Default {true}
+ */
+ enableAnimation?: boolean;
+
+ /** Specifies the splitter control to be displayed in right to left direction.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Specify height for splitter control.
+ * @Default {null}
+ */
+ height?: string;
+
+ /** Specifies the HTML Attributes of the Splitter.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Specify window resizing behavior for splitter control.
+ * @Default {false}
+ */
+ isResponsive?: boolean;
+
+ /** Specify the orientation for splitter control. See orientation
+ * @Default {ej.orientation.Horizontal or “horizontalâ€}
+ */
+ orientation?: ej.Orientation | string;
+
+ /** Specify properties for each pane like paneSize, minSize, maxSize, collapsible, expandable, resizable.
+ * @Default {[]}
+ */
+ properties?: any[];
+
+ /** Specify width for splitter control.
+ * @Default {null}
+ */
+ width?: string;
+
+ /** Fires before expanding / collapsing the split pane of splitter control. */
+ beforeExpandCollapse?(e: BeforeExpandCollapseEventArgs): void;
+
+ /** Fires when splitter control pane has been created. */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when splitter control pane has been destroyed. */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Fires when expand / collapse operation in splitter control pane has been performed successfully. */
+ expandCollapse?(e: ExpandCollapseEventArgs): void;
+
+ /** Fires when resize in splitter control pane. */
+ resize?(e: ResizeEventArgs): void;
+ }
+
+ export interface BeforeExpandCollapseEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns collapsed pane details.
+ */
+ collapsed?: any;
+
+ /** returns expanded pane details.
+ */
+ expanded?: any;
+
+ /** returns the splitter model.
+ */
+ model?: ej.Splitter.Model;
+
+ /** returns the current split bar index.
+ */
+ splitbarIndex?: number;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
+
+ export interface CreateEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the splitter model.
+ */
+ model?: ej.Splitter.Model;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the splitter model.
+ */
+ model?: ej.Splitter.Model;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
+
+ export interface ExpandCollapseEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns collapsed pane details.
+ */
+ collapsed?: any;
+
+ /** returns expanded pane details.
+ */
+ expanded?: any;
+
+ /** returns the splitter model.
+ */
+ model?: ej.Splitter.Model;
+
+ /** returns the current split bar index.
+ */
+ splitbarIndex?: number;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
+
+ export interface ResizeEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns previous pane details.
+ */
+ prevPane?: any;
+
+ /** returns next pane details.
+ */
+ nextPane?: any;
+
+ /** returns the splitter model.
+ */
+ model?: ej.Splitter.Model;
+
+ /** returns the current split bar index.
+ */
+ splitbarIndex?: number;
+
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
+ }
+
+ class Tab extends ej.Widget {
+ static fn: Tab;
+ constructor(element: JQuery | Element, options?: Tab.Model);
+ static Locale: any;
+ model: Tab.Model;
+ defaults: Tab.Model;
+
+ /** Add new tab items with given name, URL and given index position, if index null it’s add last item.
+ * @param {string} URL name / tab id.
+ * @param {string} Tab Display name.
+ * @param {number} Index position to placed , this is optional.
+ * @param {string} specifies cssClass, this is optional.
+ * @param {string} specifies id of tab, this is optional.
+ * @returns {void}
+ */
+ addItem(URL: string, displayLabel: string, index: number, cssClass: string, id: string): void;
+
+ /** To disable the tab control.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** To enable the tab control.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** This function get the number of tab rendered
+ * @returns {number}
+ */
+ getItemsCount(): number;
+
+ /** This function hides the tab control.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** This function hides the specified item tab in tab control.
+ * @param {number} index of tab item.
+ * @returns {void}
+ */
+ hideItem(index: number): void;
+
+ /** Remove the given index tab item.
+ * @param {number} index of tab item.
+ * @returns {void}
+ */
+ removeItem(index: number): void;
+
+ /** This function is to show the tab control.
+ * @returns {void}
+ */
+ show(): void;
+
+ /** This function helps to show the specified hidden tab item in tab control.
+ * @param {number} index of tab item.
+ * @returns {void}
+ */
+ showItem(index: number): void;
+ }
+ export namespace Tab {
+
+ export interface Model {
+
+ /** Specifies the ajaxSettings option to load the content to the Tab control.
+ */
+ ajaxSettings?: AjaxSettings;
+
+ /** Tab items interaction with keyboard keys, like headers active navigation.
+ * @Default {true}
+ */
+ allowKeyboardNavigation?: boolean;
+
+ /** Allow to collapsing the active item, while click on the active header.
+ * @Default {false}
+ */
+ collapsible?: boolean;
+
+ /** Set the root class for Tab theme. This cssClass API helps to use custom skinning option for Tab control.
+ */
+ cssClass?: string;
+
+ /** Disables the given tab headers and content panels.
+ * @Default {[]}
+ */
+ disabledItemIndex?: number[];
+
+ /** Specifies the animation behavior of the tab.
+ * @Default {true}
+ */
+ enableAnimation?: boolean;
+
+ /** When this property is set to false, it disables the tab control.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Enables the given tab headers and content panels.
+ * @Default {[]}
+ */
+ enabledItemIndex?: number[];
+
+ /** Save current model value to browser cookies for state maintains. While refresh the Tab control page the model value apply from browser cookies.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Display Right to Left direction for headers and panels text of tab.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Specify to enable scrolling for Tab header.
+ * @Default {false}
+ */
+ enableTabScroll?: boolean;
+
+ /** The event API to bind the action for active the tab items.
+ * @Default {click}
+ */
+ events?: string;
+
+ /** Specifies the position of Tab header as top, bottom, left or right. See below to get available Position
+ * @Default {top}
+ */
+ headerPosition?: string | ej.Tab.Position;
+
+ /** Set the height of the tab header element. Default this property value is null, so height take content height.
+ * @Default {null}
+ */
+ headerSize?: string | number;
+
+ /** Height set the outer panel element. Default this property value is null, so height take content height.
+ * @Default {null}
+ */
+ height?: string | number;
+
+ /** Adjust the content panel height for given option (content, auto and fill), by default panels height adjust based on the content.See below to get available HeightAdjustMode
+ * @Default {content}
+ */
+ heightAdjustMode?: string | ej.Tab.HeightAdjustMode;
+
+ /** Specifies to hide a pane of Tab control.
+ * @Default {[]}
+ */
+ hiddenItemIndex?: any[];
+
+ /** Specifies the HTML Attributes of the Tab.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** The idPrefix property appends the given string on the added tab item id’s in runtime.
+ * @Default {ej-tab-}
+ */
+ idPrefix?: string;
+
+ /** Specifies the Tab header in active for given index value.
+ * @Default {0}
+ */
+ selectedItemIndex?: number;
+
+ /** Display the close button for each tab items. While clicking on the close icon, particular tab item will be removed.
+ * @Default {false}
+ */
+ showCloseButton?: boolean;
+
+ /** Display the Reload button for each tab items.
+ * @Default {false}
+ */
+ showReloadIcon?: boolean;
+
+ /** Tab panels and headers to be displayed in rounded corner style.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Set the width for outer panel element, if not it’s take parent width.
+ * @Default {null}
+ */
+ width?: string | number;
+
+ /** Triggered after a tab item activated. */
+ itemActive?(e: ItemActiveEventArgs): void;
+
+ /** Triggered before AJAX content has been loaded. */
+ ajaxBeforeLoad?(e: AjaxBeforeLoadEventArgs): void;
+
+ /** Triggered if error occurs in AJAX request. */
+ ajaxError?(e: AjaxErrorEventArgs): void;
+
+ /** Triggered after AJAX content load action. */
+ ajaxLoad?(e: AjaxLoadEventArgs): void;
+
+ /** Triggered after a tab item activated. */
+ ajaxSuccess?(e: AjaxSuccessEventArgs): void;
- /** returns previous active tab header.
- */
- prevActiveHeader?: HTMLElement;
+ /** Triggered before a tab item activated. */
+ beforeActive?(e: BeforeActiveEventArgs): void;
- /** returns previous active index.
- */
- prevActiveIndex?: number;
+ /** Triggered before a tab item remove. */
+ beforeItemRemove?(e: BeforeItemRemoveEventArgs): void;
+
+ /** Triggered before a tab item Create. */
+ create?(e: CreateEventArgs): void;
- /** returns current active tab header .
- */
- activeHeader?: HTMLElement;
+ /** Triggered before a tab item destroy. */
+ destroy?(e: DestroyEventArgs): void;
- /** returns current active index.
- */
- activeIndex?: number;
+ /** Triggered after new tab item add */
+ itemAdd?(e: ItemAddEventArgs): void;
- /** returns, is it triggered by interaction or not.
- */
- isInteraction?: boolean;
-}
+ /** Triggered after tab item removed. */
+ itemRemove?(e: ItemRemoveEventArgs): void;
+ }
-export interface AjaxBeforeLoadEventArgs {
+ export interface ItemActiveEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the tab model.
- */
- model?: ej.Tab.Model;
+ /** returns the tab model.
+ */
+ model?: ej.Tab.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns previous active tab header.
- */
- prevActiveHeader?: HTMLElement;
+ /** returns previous active tab header.
+ */
+ prevActiveHeader?: HTMLElement;
- /** returns previous active index.
- */
- prevActiveIndex?: number;
+ /** returns previous active index.
+ */
+ prevActiveIndex?: number;
- /** returns current active tab header .
- */
- activeHeader?: HTMLElement;
+ /** returns current active tab header .
+ */
+ activeHeader?: HTMLElement;
- /** returns current active index.
- */
- activeIndex?: number;
+ /** returns current active index.
+ */
+ activeIndex?: number;
- /** returns the URL of AJAX request
- */
- URL?: string;
+ /** returns, is it triggered by interaction or not.
+ */
+ isInteraction?: boolean;
+ }
- /** returns, is it triggered by interaction or not.
- */
- isInteraction?: boolean;
-}
+ export interface AjaxBeforeLoadEventArgs {
-export interface AjaxErrorEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the tab model.
+ */
+ model?: ej.Tab.Model;
- /** returns the tab model.
- */
- model?: ej.Tab.Model;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns previous active tab header.
+ */
+ prevActiveHeader?: HTMLElement;
- /** returns AJAX data details.
- */
- data?: any;
+ /** returns previous active index.
+ */
+ prevActiveIndex?: number;
- /** returns the URL of AJAX request.
- */
- URL?: string;
-}
+ /** returns current active tab header .
+ */
+ activeHeader?: HTMLElement;
-export interface AjaxLoadEventArgs {
+ /** returns current active index.
+ */
+ activeIndex?: number;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the URL of AJAX request
+ */
+ URL?: string;
- /** returns the tab model.
- */
- model?: ej.Tab.Model;
+ /** returns, is it triggered by interaction or not.
+ */
+ isInteraction?: boolean;
+ }
- /** returns the name of the event.
- */
- type?: string;
+ export interface AjaxErrorEventArgs {
- /** returns previous active tab header.
- */
- prevActiveHeader?: HTMLElement;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns previous active index.
- */
- prevActiveIndex?: number;
+ /** returns the tab model.
+ */
+ model?: ej.Tab.Model;
- /** returns current active tab header .
- */
- activeHeader?: HTMLElement;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns current active index.
- */
- activeIndex?: number;
+ /** returns AJAX data details.
+ */
+ data?: any;
- /** returns the URL of AJAX request
- */
- URL?: string;
+ /** returns the URL of AJAX request.
+ */
+ URL?: string;
+ }
- /** returns, is it triggered by interaction or not.
- */
- isInteraction?: boolean;
-}
+ export interface AjaxLoadEventArgs {
-export interface AjaxSuccessEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the tab model.
+ */
+ model?: ej.Tab.Model;
- /** returns the tab model.
- */
- model?: ej.Tab.Model;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns previous active tab header.
+ */
+ prevActiveHeader?: HTMLElement;
- /** return AJAX data.
- */
- data?: any;
+ /** returns previous active index.
+ */
+ prevActiveIndex?: number;
- /** returns AJAX URL
- */
- URL?: string;
+ /** returns current active tab header .
+ */
+ activeHeader?: HTMLElement;
- /** returns content of AJAX request.
- */
- content?: any;
-}
+ /** returns current active index.
+ */
+ activeIndex?: number;
-export interface BeforeActiveEventArgs {
+ /** returns the URL of AJAX request
+ */
+ URL?: string;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns, is it triggered by interaction or not.
+ */
+ isInteraction?: boolean;
+ }
- /** returns the tab model.
- */
- model?: ej.Tab.Model;
+ export interface AjaxSuccessEventArgs {
- /** returns the name of the event.
- */
- type?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns previous active tab header.
- */
- prevActiveHeader?: HTMLElement;
+ /** returns the tab model.
+ */
+ model?: ej.Tab.Model;
- /** returns previous active index.
- */
- prevActiveIndex?: number;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns current active tab header .
- */
- activeHeader?: HTMLElement;
+ /** return AJAX data.
+ */
+ data?: any;
- /** returns current active index.
- */
- activeIndex?: number;
+ /** returns AJAX URL
+ */
+ URL?: string;
- /** returns, is it triggered by interaction or not.
- */
- isInteraction?: boolean;
-}
+ /** returns content of AJAX request.
+ */
+ content?: any;
+ }
-export interface BeforeItemRemoveEventArgs {
+ export interface BeforeActiveEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the tab model.
- */
- model?: ej.Tab.Model;
+ /** returns the tab model.
+ */
+ model?: ej.Tab.Model;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns current tab item index
- */
- index?: number;
-}
+ /** returns previous active tab header.
+ */
+ prevActiveHeader?: HTMLElement;
-export interface CreateEventArgs {
+ /** returns previous active index.
+ */
+ prevActiveIndex?: number;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns current active tab header .
+ */
+ activeHeader?: HTMLElement;
- /** returns the tab model.
- */
- model?: ej.Tab.Model;
+ /** returns current active index.
+ */
+ activeIndex?: number;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns, is it triggered by interaction or not.
+ */
+ isInteraction?: boolean;
+ }
-export interface DestroyEventArgs {
+ export interface BeforeItemRemoveEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the tab model.
- */
- model?: ej.Tab.Model;
+ /** returns the tab model.
+ */
+ model?: ej.Tab.Model;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
-export interface ItemAddEventArgs {
+ /** returns current tab item index
+ */
+ index?: number;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface CreateEventArgs {
- /** returns the tab model.
- */
- model?: ej.Tab.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the tab model.
+ */
+ model?: ej.Tab.Model;
- /** returns new added tab header.
- */
- tabHeader?: HTMLElement;
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
- /** returns new added tab content panel.
- */
- tabContent?: any;
-}
+ export interface DestroyEventArgs {
-export interface ItemRemoveEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the tab model.
+ */
+ model?: ej.Tab.Model;
- /** returns the tab model.
- */
- model?: ej.Tab.Model;
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
- /** returns the name of the event.
- */
- type?: string;
+ export interface ItemAddEventArgs {
- /** returns removed tab header.
- */
- removedTab?: HTMLElement;
-}
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
-export interface AjaxSettings {
+ /** returns the tab model.
+ */
+ model?: ej.Tab.Model;
- /** It specifies, whether to enable or disable asynchronous request.
- * @Default {true}
- */
- async?: boolean;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** It specifies the page will be cached in the web browser.
- * @Default {false}
- */
- cache?: boolean;
+ /** returns new added tab header.
+ */
+ tabHeader?: HTMLElement;
- /** It specifies the type of data is send in the query string.
- * @Default {html}
- */
- contentType?: string;
+ /** returns new added tab content panel.
+ */
+ tabContent?: any;
+ }
- /** It specifies the data as an object, will be passed in the query string.
- * @Default {{}}
- */
- data?: any;
+ export interface ItemRemoveEventArgs {
- /** It specifies the type of data that you're expecting back from the response.
- * @Default {html}
- */
- dataType?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** It specifies the HTTP request type.
- * @Default {get}
- */
- type?: string;
-}
-
-enum Position {
-
- ///Tab headers display to top position
- Top,
-
- ///Tab headers display to bottom position
- Bottom,
-
- ///Tab headers display to left position.
- Left,
-
- ///Tab headers display to right position.
- Right
-}
-
-
-enum HeightAdjustMode {
-
- ///string
- None,
-
- ///string
- Content,
-
- ///string
- Auto,
-
- ///string
- Fill
-}
-
-}
-
-class TagCloud extends ej.Widget {
- static fn: TagCloud;
- constructor(element: JQuery | Element, options?: TagCloud.Model);
- static Locale: any;
- model: TagCloud.Model;
- defaults: TagCloud.Model;
-
- /** Inserts a new item into the TagCloud
- * @param {string} Insert new item into the TagCloud
- * @returns {void}
- */
- insert(name: string): void;
-
- /** Inserts a new item into the TagCloud at a particular position.
- * @param {string} Inserts a new item into the TagCloud
- * @param {number} Inserts a new item into the TagCloud with the specified position
- * @returns {void}
- */
- insertAt(name: string, position: number): void;
-
- /** Removes the item from the TagCloud based on the name. It removes all the tags which have the corresponding name
- * @param {string} name of the tag.
- * @returns {void}
- */
- remove(name: string): void;
-
- /** Removes the item from the TagCloud based on the position. It removes the tags from the the corresponding position only.
- * @param {number} position of tag item.
- * @returns {void}
- */
- removeAt(position: number): void;
-}
-export namespace TagCloud {
-
-export interface Model {
-
- /** Specify the CSS class to button to achieve custom theme.
- */
- cssClass?: string;
-
- /** The dataSource contains the list of data to display in a cloud format. Each data contains a link URL, frequency to categorize the font size and a display text.
- * @Default {null}
- */
- dataSource?: any;
-
- /** Sets the TagCloud and tag items direction as right to left alignment.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Defines the mapping fields for the data items of the TagCloud.
- * @Default {null}
- */
- fields?: Fields;
+ /** returns the tab model.
+ */
+ model?: ej.Tab.Model;
- /** Specifies the list of HTML attributes to be added to TagCloud control.
- * @Default {{}}
- */
- htmlAttributes?: any;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** Defines the format for the TagCloud to display the tag items.See Format
- * @Default {ej.Format.Cloud}
- */
- format?: string|ej.Format;
+ /** returns removed tab header.
+ */
+ removedTab?: HTMLElement;
+ }
- /** Sets the maximum font size value for the tag items. The font size for the tag items will be generated in between the minimum and maximum font size values.
- * @Default {40px}
- */
- maxFontSize?: string|number;
+ export interface AjaxSettings {
- /** Sets the minimum font size value for the tag items. The font size for the tag items will be generated in between the minimum and maximum font size values.
- * @Default {10px}
- */
- minFontSize?: string|number;
+ /** It specifies, whether to enable or disable asynchronous request.
+ * @Default {true}
+ */
+ async?: boolean;
- /** Define the query to retrieve the data from online server. The query is used only when the online dataSource is used.
- * @Default {null}
- */
- query?: any;
-
- /** Shows or hides the TagCloud title. When this set to false, it hides the TagCloud header.
- * @Default {true}
- */
- showTitle?: boolean;
-
- /** Sets the title image for the TagCloud. To show the title image, the showTitle property should be enabled.
- * @Default {null}
- */
- titleImage?: string;
-
- /** Sets the title text for the TagCloud. To show the title text, the showTitle property should be enabled.
- * @Default {Title}
- */
- titleText?: string;
-
- /** Event triggers when the TagCloud items are clicked */
- click?(e: ClickEventArgs): void;
-
- /** Event triggers when the TagCloud are created */
- create?(e: CreateEventArgs): void;
-
- /** Event triggers when the TagCloud are destroyed */
- destroy?(e: DestroyEventArgs): void;
-
- /** Event triggers when the cursor leaves out from a tag item */
- mouseout?(e: MouseoutEventArgs): void;
-
- /** Event triggers when the cursor hovers on a tag item */
- mouseover?(e: MouseoverEventArgs): void;
-}
-
-export interface ClickEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the TagCloud model
- */
- model?: ej.TagCloud.Model;
-
- /** returns the name of the event
- */
- type?: string;
+ /** It specifies the page will be cached in the web browser.
+ * @Default {false}
+ */
+ cache?: boolean;
- /** return current tag name
- */
- text?: string;
-
- /** return current URL link
- */
- URL?: string;
-}
-
-export interface CreateEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the TagCloud model
- */
- model?: ej.TagCloud.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface DestroyEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the TagCloud model
- */
- model?: ej.TagCloud.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface MouseoutEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the TagCloud model
- */
- model?: ej.TagCloud.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** return current tag name
- */
- text?: string;
-
- /** return current URL link
- */
- URL?: string;
-}
-
-export interface MouseoverEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the TagCloud model
- */
- model?: ej.TagCloud.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** return current tag name
- */
- text?: string;
-
- /** return current URL link
- */
- URL?: string;
-}
-
-export interface Fields {
-
- /** Defines the frequency column number to categorize the font size.
- */
- frequency?: string;
-
- /** Defines the HTML attributes column for the anchor elements inside the each tag items.
- */
- htmlAttributes?: string;
-
- /** Defines the tag value or display text.
- */
- text?: string;
-
- /** Defines the URL link to navigate while click the tag.
- */
- url?: string;
-}
-}
-enum Format {
-//To render the TagCloud items in cloud format
-Cloud,
-//To render the TagCloud items in list format
-List,
-}
-
-class TimePicker extends ej.Widget {
- static fn: TimePicker;
- constructor(element: JQuery | Element, options?: TimePicker.Model);
- static Locale: any;
- model: TimePicker.Model;
- defaults: TimePicker.Model;
-
- /** Allows you to disable the TimePicker.
- * @returns {void}
- */
- disable(): void;
-
- /** Allows you to enable the TimePicker.
- * @returns {void}
- */
- enable(): void;
-
- /** It returns the current time value.
- * @returns {string}
- */
- getValue(): string;
-
- /** This method will hide the TimePicker control popup.
- * @returns {void}
- */
- hide(): void;
-
- /** Updates the current system time in TimePicker.
- * @returns {void}
- */
- setCurrentTime(): void;
-
- /** This method will show the TimePicker control popup.
- * @returns {void}
- */
- show(): void;
-}
-export namespace TimePicker {
-
-export interface Model {
-
- /** Sets the root CSS class for the TimePicker theme, which is used to customize.
- */
- cssClass?: string;
-
- /** Specifies the list of time range to be disabled.
- * @Default {{}}
- */
- disableTimeRanges?: any;
-
- /** Specifies the animation behavior in TimePicker.
- * @Default {true}
- */
- enableAnimation?: boolean;
-
- /** When this property is set to false, it disables the TimePicker control.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Save current model value to browser cookies for maintaining states. When refreshing the TimePicker control page, the model value is applied from browser cookies or HTML 5local storage.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Displays the TimePicker as right to left alignment.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** When the enableStrictMode is set as true it allows the value outside of the range and also indicate with red color border,
- * otherwise it internally changed to the min or max range value based an input value.
- * @Default {false}
- */
- enableStrictMode?: boolean;
-
- /** Defines the height of the TimePicker textbox.
- */
- height?: string|number;
-
- /** Sets the step value for increment an hour value through arrow keys or mouse scroll.
- * @Default {1}
- */
- hourInterval?: number;
-
- /** It allows to define the characteristics of the TimePicker control. It will helps to extend the capability of an HTML element.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Sets the time interval between the two adjacent time values in the popup.
- * @Default {30}
- */
- interval?: number;
-
- /** Defines the localization info used by the TimePicker.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Sets the maximum time value to the TimePicker.
- * @Default {11:59:59 PM}
- */
- maxTime?: string;
-
- /** Sets the minimum time value to the TimePicker.
- * @Default {12:00:00 AM}
- */
- minTime?: string;
-
- /** Sets the step value for increment the minute value through arrow keys or mouse scroll.
- * @Default {1}
- */
- minutesInterval?: number;
-
- /** Defines the height of the TimePicker popup.
- * @Default {191px}
- */
- popupHeight?: string|number;
-
- /** Defines the width of the TimePicker popup.
- * @Default {auto}
- */
- popupWidth?: string|number;
-
- /** Toggles the readonly state of the TimePicker
- * @Default {false}
- */
- readOnly?: boolean;
-
- /** Sets the step value for increment the seconds value through arrow keys or mouse scroll.
- * @Default {1}
- */
- secondsInterval?: number;
-
- /** shows or hides the drop down button in TimePicker.
- * @Default {true}
- */
- showPopupButton?: boolean;
-
- /** TimePicker is displayed with rounded corner when this property is set to true.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Defines the time format displayed in the TimePicker.
- * @Default {h:mm tt}
- */
- timeFormat?: string;
-
- /** Sets a specified time value on the TimePicker.
- * @Default {null}
- */
- value?: string|Date;
-
- /** Defines the width of the TimePicker textbox.
- */
- width?: string|number;
-
- /** Fires when the time value changed in the TimePicker. */
- beforeChange?(e: BeforeChangeEventArgs): void;
-
- /** Fires when the TimePicker popup before opened. */
- beforeOpen?(e: BeforeOpenEventArgs): void;
+ /** It specifies the type of data is send in the query string.
+ * @Default {html}
+ */
+ contentType?: string;
- /** Fires when the time value changed in the TimePicker. */
- change?(e: ChangeEventArgs): void;
-
- /** Fires when the TimePicker popup closed. */
- close?(e: CloseEventArgs): void;
-
- /** Fires when create TimePicker successfully. */
- create?(e: CreateEventArgs): void;
+ /** It specifies the data as an object, will be passed in the query string.
+ * @Default {{}}
+ */
+ data?: any;
- /** Fires when the TimePicker is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ /** It specifies the type of data that you're expecting back from the response.
+ * @Default {html}
+ */
+ dataType?: string;
- /** Fires when the TimePicker control gets focus. */
- focusIn?(e: FocusInEventArgs): void;
+ /** It specifies the HTTP request type.
+ * @Default {get}
+ */
+ type?: string;
+ }
+
+ enum Position {
+
+ ///Tab headers display to top position
+ Top,
+
+ ///Tab headers display to bottom position
+ Bottom,
+
+ ///Tab headers display to left position.
+ Left,
+
+ ///Tab headers display to right position.
+ Right
+ }
+
+
+ enum HeightAdjustMode {
+
+ ///string
+ None,
+
+ ///string
+ Content,
+
+ ///string
+ Auto,
+
+ ///string
+ Fill
+ }
+
+ }
+
+ class TagCloud extends ej.Widget {
+ static fn: TagCloud;
+ constructor(element: JQuery | Element, options?: TagCloud.Model);
+ static Locale: any;
+ model: TagCloud.Model;
+ defaults: TagCloud.Model;
+
+ /** Inserts a new item into the TagCloud
+ * @param {string} Insert new item into the TagCloud
+ * @returns {void}
+ */
+ insert(name: string): void;
+
+ /** Inserts a new item into the TagCloud at a particular position.
+ * @param {string} Inserts a new item into the TagCloud
+ * @param {number} Inserts a new item into the TagCloud with the specified position
+ * @returns {void}
+ */
+ insertAt(name: string, position: number): void;
+
+ /** Removes the item from the TagCloud based on the name. It removes all the tags which have the corresponding name
+ * @param {string} name of the tag.
+ * @returns {void}
+ */
+ remove(name: string): void;
+
+ /** Removes the item from the TagCloud based on the position. It removes the tags from the the corresponding position only.
+ * @param {number} position of tag item.
+ * @returns {void}
+ */
+ removeAt(position: number): void;
+ }
+ export namespace TagCloud {
+
+ export interface Model {
+
+ /** Specify the CSS class to button to achieve custom theme.
+ */
+ cssClass?: string;
+
+ /** The dataSource contains the list of data to display in a cloud format. Each data contains a link URL, frequency to categorize the font size and a display text.
+ * @Default {null}
+ */
+ dataSource?: any;
+
+ /** Sets the TagCloud and tag items direction as right to left alignment.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Defines the mapping fields for the data items of the TagCloud.
+ * @Default {null}
+ */
+ fields?: Fields;
- /** Fires when the TimePicker control get lost focus. */
- focusOut?(e: FocusOutEventArgs): void;
+ /** Specifies the list of HTML attributes to be added to TagCloud control.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
- /** Fires when the TimePicker popup opened. */
- open?(e: OpenEventArgs): void;
+ /** Defines the format for the TagCloud to display the tag items.See Format
+ * @Default {ej.Format.Cloud}
+ */
+ format?: string | ej.Format;
- /** Fires when the value is selected from the TimePicker dropdown list. */
- select?(e: SelectEventArgs): void;
-}
+ /** Sets the maximum font size value for the tag items. The font size for the tag items will be generated in between the minimum and maximum font size values.
+ * @Default {40px}
+ */
+ maxFontSize?: string | number;
-export interface BeforeChangeEventArgs {
+ /** Sets the minimum font size value for the tag items. The font size for the tag items will be generated in between the minimum and maximum font size values.
+ * @Default {10px}
+ */
+ minFontSize?: string | number;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** Define the query to retrieve the data from online server. The query is used only when the online dataSource is used.
+ * @Default {null}
+ */
+ query?: any;
+
+ /** Shows or hides the TagCloud title. When this set to false, it hides the TagCloud header.
+ * @Default {true}
+ */
+ showTitle?: boolean;
+
+ /** Sets the title image for the TagCloud. To show the title image, the showTitle property should be enabled.
+ * @Default {null}
+ */
+ titleImage?: string;
+
+ /** Sets the title text for the TagCloud. To show the title text, the showTitle property should be enabled.
+ * @Default {Title}
+ */
+ titleText?: string;
+
+ /** Event triggers when the TagCloud items are clicked */
+ click?(e: ClickEventArgs): void;
+
+ /** Event triggers when the TagCloud are created */
+ create?(e: CreateEventArgs): void;
+
+ /** Event triggers when the TagCloud are destroyed */
+ destroy?(e: DestroyEventArgs): void;
+
+ /** Event triggers when the cursor leaves out from a tag item */
+ mouseout?(e: MouseoutEventArgs): void;
+
+ /** Event triggers when the cursor hovers on a tag item */
+ mouseover?(e: MouseoverEventArgs): void;
+ }
+
+ export interface ClickEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the TagCloud model
+ */
+ model?: ej.TagCloud.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the TimePicker model
- */
- model?: ej.TimePicker.Model;
+ /** return current tag name
+ */
+ text?: string;
+
+ /** return current URL link
+ */
+ URL?: string;
+ }
+
+ export interface CreateEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the TagCloud model
+ */
+ model?: ej.TagCloud.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the TagCloud model
+ */
+ model?: ej.TagCloud.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface MouseoutEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the TagCloud model
+ */
+ model?: ej.TagCloud.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** return current tag name
+ */
+ text?: string;
+
+ /** return current URL link
+ */
+ URL?: string;
+ }
+
+ export interface MouseoverEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the TagCloud model
+ */
+ model?: ej.TagCloud.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** return current tag name
+ */
+ text?: string;
+
+ /** return current URL link
+ */
+ URL?: string;
+ }
+
+ export interface Fields {
+
+ /** Defines the frequency column number to categorize the font size.
+ */
+ frequency?: string;
+
+ /** Defines the HTML attributes column for the anchor elements inside the each tag items.
+ */
+ htmlAttributes?: string;
+
+ /** Defines the tag value or display text.
+ */
+ text?: string;
+
+ /** Defines the URL link to navigate while click the tag.
+ */
+ url?: string;
+ }
+ }
+ enum Format {
+ //To render the TagCloud items in cloud format
+ Cloud,
+ //To render the TagCloud items in list format
+ List,
+ }
+
+ class TimePicker extends ej.Widget {
+ static fn: TimePicker;
+ constructor(element: JQuery | Element, options?: TimePicker.Model);
+ static Locale: any;
+ model: TimePicker.Model;
+ defaults: TimePicker.Model;
+
+ /** Allows you to disable the TimePicker.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Allows you to enable the TimePicker.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** It returns the current time value.
+ * @returns {string}
+ */
+ getValue(): string;
+
+ /** This method will hide the TimePicker control popup.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** Updates the current system time in TimePicker.
+ * @returns {void}
+ */
+ setCurrentTime(): void;
+
+ /** This method will show the TimePicker control popup.
+ * @returns {void}
+ */
+ show(): void;
+ }
+ export namespace TimePicker {
+
+ export interface Model {
+
+ /** Sets the root CSS class for the TimePicker theme, which is used to customize.
+ */
+ cssClass?: string;
+
+ /** Specifies the list of time range to be disabled.
+ * @Default {{}}
+ */
+ disableTimeRanges?: any;
+
+ /** Specifies the animation behavior in TimePicker.
+ * @Default {true}
+ */
+ enableAnimation?: boolean;
+
+ /** When this property is set to false, it disables the TimePicker control.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Save current model value to browser cookies for maintaining states. When refreshing the TimePicker control page, the model value is applied from browser cookies or HTML 5local storage.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Displays the TimePicker as right to left alignment.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** When the enableStrictMode is set as true it allows the value outside of the range and also indicate with red color border,
+ * otherwise it internally changed to the min or max range value based an input value.
+ * @Default {false}
+ */
+ enableStrictMode?: boolean;
+
+ /** Defines the height of the TimePicker textbox.
+ */
+ height?: string | number;
+
+ /** Sets the step value for increment an hour value through arrow keys or mouse scroll.
+ * @Default {1}
+ */
+ hourInterval?: number;
+
+ /** It allows to define the characteristics of the TimePicker control. It will helps to extend the capability of an HTML element.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Sets the time interval between the two adjacent time values in the popup.
+ * @Default {30}
+ */
+ interval?: number;
+
+ /** Defines the localization info used by the TimePicker.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Sets the maximum time value to the TimePicker.
+ * @Default {11:59:59 PM}
+ */
+ maxTime?: string;
+
+ /** Sets the minimum time value to the TimePicker.
+ * @Default {12:00:00 AM}
+ */
+ minTime?: string;
+
+ /** Sets the step value for increment the minute value through arrow keys or mouse scroll.
+ * @Default {1}
+ */
+ minutesInterval?: number;
+
+ /** Defines the height of the TimePicker popup.
+ * @Default {191px}
+ */
+ popupHeight?: string | number;
+
+ /** Defines the width of the TimePicker popup.
+ * @Default {auto}
+ */
+ popupWidth?: string | number;
+
+ /** Toggles the readonly state of the TimePicker
+ * @Default {false}
+ */
+ readOnly?: boolean;
+
+ /** Sets the step value for increment the seconds value through arrow keys or mouse scroll.
+ * @Default {1}
+ */
+ secondsInterval?: number;
+
+ /** shows or hides the drop down button in TimePicker.
+ * @Default {true}
+ */
+ showPopupButton?: boolean;
+
+ /** TimePicker is displayed with rounded corner when this property is set to true.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Defines the time format displayed in the TimePicker.
+ * @Default {h:mm tt}
+ */
+ timeFormat?: string;
+
+ /** Sets a specified time value on the TimePicker.
+ * @Default {null}
+ */
+ value?: string | Date;
+
+ /** Defines the width of the TimePicker textbox.
+ */
+ width?: string | number;
+
+ /** Fires when the time value changed in the TimePicker. */
+ beforeChange?(e: BeforeChangeEventArgs): void;
+
+ /** Fires when the TimePicker popup before opened. */
+ beforeOpen?(e: BeforeOpenEventArgs): void;
- /** returns the name of the event
- */
- type?: string;
+ /** Fires when the time value changed in the TimePicker. */
+ change?(e: ChangeEventArgs): void;
+
+ /** Fires when the TimePicker popup closed. */
+ close?(e: CloseEventArgs): void;
+
+ /** Fires when create TimePicker successfully. */
+ create?(e: CreateEventArgs): void;
- /** returns the previously selected time value
- */
- prevTime?: string;
+ /** Fires when the TimePicker is destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
- /** returns the modified time value
- */
- value?: string;
-}
+ /** Fires when the TimePicker control gets focus. */
+ focusIn?(e: FocusInEventArgs): void;
-export interface BeforeOpenEventArgs {
+ /** Fires when the TimePicker control get lost focus. */
+ focusOut?(e: FocusOutEventArgs): void;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** Fires when the TimePicker popup opened. */
+ open?(e: OpenEventArgs): void;
- /** returns the TimePicker model
- */
- model?: ej.TimePicker.Model;
+ /** Fires when the value is selected from the TimePicker dropdown list. */
+ select?(e: SelectEventArgs): void;
+ }
- /** returns the name of the event
- */
- type?: string;
+ export interface BeforeChangeEventArgs {
- /** returns the previously selected time value
- */
- prevTime?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the time value
- */
- value?: string;
-}
+ /** returns the TimePicker model
+ */
+ model?: ej.TimePicker.Model;
-export interface ChangeEventArgs {
+ /** returns the name of the event
+ */
+ type?: string;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the previously selected time value
+ */
+ prevTime?: string;
- /** returns the TimePicker model
- */
- model?: ej.TimePicker.Model;
+ /** returns the modified time value
+ */
+ value?: string;
+ }
- /** returns the name of the event
- */
- type?: string;
+ export interface BeforeOpenEventArgs {
- /** returns true when the value changed by user interaction otherwise returns false
- */
- isInteraction?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the previously selected time value
- */
- prevTime?: string;
+ /** returns the TimePicker model
+ */
+ model?: ej.TimePicker.Model;
- /** returns the modified time value
- */
- value?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
-export interface CloseEventArgs {
+ /** returns the previously selected time value
+ */
+ prevTime?: string;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the time value
+ */
+ value?: string;
+ }
- /** returns the TimePicker model
- */
- model?: ej.TimePicker.Model;
+ export interface ChangeEventArgs {
- /** returns the name of the event
- */
- type?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the previously selected time value
- */
- prevTime?: string;
+ /** returns the TimePicker model
+ */
+ model?: ej.TimePicker.Model;
- /** returns the time value
- */
- value?: string;
-}
+ /** returns the name of the event
+ */
+ type?: string;
-export interface CreateEventArgs {
+ /** returns true when the value changed by user interaction otherwise returns false
+ */
+ isInteraction?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the previously selected time value
+ */
+ prevTime?: string;
- /** returns the TimePicker model
- */
- model?: ej.TimePicker.Model;
+ /** returns the modified time value
+ */
+ value?: string;
+ }
- /** returns the name of the event
- */
- type?: string;
-}
+ export interface CloseEventArgs {
-export interface DestroyEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the TimePicker model
+ */
+ model?: ej.TimePicker.Model;
- /** returns the TimePicker model
- */
- model?: ej.TimePicker.Model;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the previously selected time value
+ */
+ prevTime?: string;
-export interface FocusInEventArgs {
+ /** returns the time value
+ */
+ value?: string;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface CreateEventArgs {
- /** returns the TimePicker model
- */
- model?: ej.TimePicker.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the TimePicker model
+ */
+ model?: ej.TimePicker.Model;
- /** returns the previously selected time value
- */
- prevTime?: string;
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** returns the current time value
- */
- value?: string;
-}
+ export interface DestroyEventArgs {
-export interface FocusOutEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the TimePicker model
+ */
+ model?: ej.TimePicker.Model;
- /** returns the TimePicker model
- */
- model?: ej.TimePicker.Model;
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** returns the name of the event
- */
- type?: string;
+ export interface FocusInEventArgs {
- /** returns the previously selected time value
- */
- prevTime?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the current time value
- */
- value?: string;
-}
+ /** returns the TimePicker model
+ */
+ model?: ej.TimePicker.Model;
-export interface OpenEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the TimePicker model
- */
- model?: ej.TimePicker.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the time value
- */
- value?: string;
-}
-
-export interface SelectEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the TimePicker model
- */
- model?: ej.TimePicker.Model;
-
- /** returns the name of the event
- */
- type?: string;
-
- /** returns the previously selected time value
- */
- prevTime?: string;
-
- /** returns the selected time value
- */
- value?: string;
-}
-}
-
-class ToggleButton extends ej.Widget {
- static fn: ToggleButton;
- constructor(element: JQuery | Element, options?: ToggleButton.Model);
- static Locale: any;
- model: ToggleButton.Model;
- defaults: ToggleButton.Model;
-
- /** Allows you to destroy the ToggleButton widget.
- * @returns {void}
- */
- destroy(): void;
-
- /** To disable the ToggleButton to prevent all user interactions.
- * @returns {void}
- */
- disable(): void;
-
- /** To enable the ToggleButton.
- * @returns {void}
- */
- enable(): void;
-}
-export namespace ToggleButton {
-
-export interface Model {
-
- /** Specify the icon in active state to the toggle button and it will be aligned from left margin of the button.
- */
- activePrefixIcon?: string;
-
- /** Specify the icon in active state to the toggle button and it will be aligned from right margin of the button.
- */
- activeSuffixIcon?: string;
-
- /** Sets the text when ToggleButton is in active state i.e.,checked state.
- * @Default {null}
- */
- activeText?: string;
-
- /** Specifies the contentType of the ToggleButton. See ContentType as below
- * @Default {ej.ContentType.TextOnly}
- */
- contentType?: ej.ContentType|string;
-
- /** Specify the CSS class to the ToggleButton to achieve custom theme.
- */
- cssClass?: string;
-
- /** Specify the icon in default state to the toggle button and it will be aligned from left margin of the button.
- */
- defaultPrefixIcon?: string;
-
- /** Specify the icon in default state to the toggle button and it will be aligned from right margin of the button.
- */
- defaultSuffixIcon?: string;
-
- /** Specifies the text of the ToggleButton, when the control is a default state. i.e., unChecked state.
- * @Default {null}
- */
- defaultText?: string;
-
- /** Specifies the state of the ToggleButton.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Save current model value to browser cookies for maintaining states. When refreshing the ToggleButton control page, the model value is applied from browser cookies or HTML 5local storage.
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Specify the Right to Left direction of the ToggleButton.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Specifies the height of the ToggleButton.
- * @Default {28pixel}
- */
- height?: number|string;
-
- /** It allows to define the characteristics of the ToggleButton control. It will helps to extend the capability of an HTML element.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Specifies the image position of the ToggleButton.
- * @Default {ej.ImagePosition.ImageLeft}
- */
- imagePosition?: ej.ImagePosition|string;
-
- /** Allows to prevents the control switched to checked (active) state.
- * @Default {false}
- */
- preventToggle?: boolean;
-
- /** Displays the ToggleButton with rounded corners.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Specifies the size of the ToggleButton. See ButtonSize as below
- * @Default {ej.ButtonSize.Normal}
- */
- size?: ej.ButtonSize|string;
-
- /** It allows to define the ToggleButton state to checked(Active) or unchecked(Default) at initial time.
- * @Default {false}
- */
- toggleState?: boolean;
-
- /** Specifies the type of the ToggleButton. See ButtonType as below
- * @Default {ej.ButtonType.Button}
- */
- type?: ej.ButtonType|string;
-
- /** Specifies the width of the ToggleButton.
- * @Default {100pixel}
- */
- width?: number|string;
-
- /** Fires when ToggleButton control state is changed successfully. */
- change?(e: ChangeEventArgs): void;
-
- /** Fires when ToggleButton control is clicked successfully. */
- click?(e: ClickEventArgs): void;
-
- /** Fires when ToggleButton control is created successfully. */
- create?(e: CreateEventArgs): void;
-
- /** Fires when ToggleButton control is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
-}
-
-export interface ChangeEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** return the toggle button checked state
- */
- isChecked?: boolean;
-
- /** returns the toggle button model
- */
- model?: ej.ToggleButton.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface ClickEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** return the toggle button checked state
- */
- isChecked?: boolean;
-
- /** returns the toggle button model
- */
- model?: ej.ToggleButton.Model;
-
- /** return the toggle button state
- */
- status?: boolean;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface CreateEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the toggle button model
- */
- model?: ej.ToggleButton.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface DestroyEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the toggle button model
- */
- model?: ej.ToggleButton.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-}
-
-class Toolbar extends ej.Widget {
- static fn: Toolbar;
- constructor(element: JQuery | Element, options?: Toolbar.Model);
- static Locale: any;
- model: Toolbar.Model;
- defaults: Toolbar.Model;
-
- /** Deselect the specified Toolbar item.
- * @param {any} The element need to be deselected
- * @returns {void}
- */
- deselectItem(element: any): void;
-
- /** Deselect the Toolbar item based on specified id.
- * @param {string} The ID of the element need to be deselected
- * @returns {void}
- */
- deselectItemByID(ID: string): void;
-
- /** Allows you to destroy the Toolbar widget.
- * @returns {void}
- */
- destroy(): void;
-
- /** To disable all items in the Toolbar control.
- * @returns {void}
- */
- disable(): void;
-
- /** Disable the specified Toolbar item.
- * @param {any} The element need to be disabled
- * @returns {void}
- */
- disableItem(element: any): void;
-
- /** Disable the Toolbar item based on specified item id in the Toolbar.
- * @param {string} The ID of the element need to be disabled
- * @returns {void}
- */
- disableItemByID(ID: string): void;
-
- /** Enable the Toolbar if it is in disabled state.
- * @returns {void}
- */
- enable(): void;
-
- /** Enable the Toolbar item based on specified item.
- * @param {any} The element need to be enabled
- * @returns {void}
- */
- enableItem(element: any): void;
-
- /** Enable the Toolbar item based on specified item id in the Toolbar.
- * @param {string} The ID of the element need to be enabled
- * @returns {void}
- */
- enableItemByID(ID: string): void;
-
- /** To hide the Toolbar
- * @returns {void}
- */
- hide(): void;
-
- /** Remove the item from toolbar, based on specified item.
- * @param {any} The element need to be removed
- * @returns {void}
- */
- removeItem(element: any): void;
-
- /** Remove the item from toolbar, based on specified item id in the Toolbar.
- * @param {string} The ID of the element need to be removed
- * @returns {void}
- */
- removeItemByID(ID: string): void;
-
- /** Selects the item from toolbar, based on specified item.
- * @param {any} The element need to be selected
- * @returns {void}
- */
- selectItem(element: any): void;
-
- /** Selects the item from toolbar, based on specified item id in the Toolbar.
- * @param {string} The ID of the element need to be selected
- * @returns {void}
- */
- selectItemByID(ID: string): void;
-
- /** To show the Toolbar.
- * @returns {void}
- */
- show(): void;
-}
-export namespace Toolbar {
-
-export interface Model {
-
- /** Sets the root CSS class for Toolbar control to achieve the custom theme.
- */
- cssClass?: string;
-
- /** Specifies dataSource value for the Toolbar control during initialization.
- * @Default {null}
- */
- dataSource?: any;
-
- /** Disables an Item or set of Items that are enabled in the Toolbar
- * @Default {[]}
- */
- disabledItemIndices?: any[];
-
- /** Specifies the Toolbar control state.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Enables an Item or set of Items that are disabled in the Toolbar
- * @Default {[]}
- */
- enabledItemIndices?: any[];
-
- /** Specifies enableRTL property to align the Toolbar control from right to left direction.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Allows to separate the each UL items in the Toolbar control.
- * @Default {false}
- */
- enableSeparator?: boolean;
-
- /** Specifies the mapping fields for the data items of the Toolbar
- * @Default {null}
- */
- fields?: string;
-
- /** Specifies the height of the Toolbar.
- * @Default {28}
- */
- height?: number|string;
-
- /** Specifies the list of HTML attributes to be added to toolbar control.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Specifies whether the Toolbar control is need to be show or hide.
- * @Default {false}
- */
- hide?: boolean;
-
- /** Enables/Disables the responsive support for Toolbar items during the window resizing time.
- * @Default {false}
- */
- isResponsive?: boolean;
-
- /** Specifies the items of Toolbar
- * @Default {null}
- */
- Items?: Items;
-
- /** Specifies the Toolbar orientation. See orientation
- * @Default {Horizontal}
- */
- orientation?: ej.Orientation|string;
-
- /** Specifies the query to retrieve the data from the online server. The query is used only when the online dataSource is used.
- * @Default {null}
- */
- query?: any;
-
- /** Specifies the Toolbar responsive type.
- * @Default {Popup}
- */
- responsiveType?: ej.Toolbar.ResponsiveType|string;
-
- /** Displays the Toolbar with rounded corners.
- * @Default {false}
- */
- showRoundedCorner?: boolean;
-
- /** Specifies the width of the Toolbar.
- */
- width?: number|string;
-
- /** Fires after Toolbar control is clicked. */
- click?(e: ClickEventArgs): void;
+ /** returns the name of the event
+ */
+ type?: string;
- /** Fires after Toolbar control is created. */
- create?(e: CreateEventArgs): void;
-
- /** Fires after Toolbar control is focused. */
- focusOut?(e: FocusOutEventArgs): void;
+ /** returns the previously selected time value
+ */
+ prevTime?: string;
- /** Fires when the Toolbar is destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ /** returns the current time value
+ */
+ value?: string;
+ }
- /** Fires after Toolbar control item is hovered. */
- itemHover?(e: ItemHoverEventArgs): void;
+ export interface FocusOutEventArgs {
- /** Fires after mouse leave from Toolbar control item. */
- itemLeave?(e: ItemLeaveEventArgs): void;
-
- /** Fires when the overflow popup of toolbar is opened. */
- overflowOpen?(e: OverflowOpenEventArgs): void;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Fires when the overflow popup of toolbar is closed. */
- overflowClose?(e: OverflowCloseEventArgs): void;
-}
+ /** returns the TimePicker model
+ */
+ model?: ej.TimePicker.Model;
-export interface ClickEventArgs {
+ /** returns the name of the event
+ */
+ type?: string;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the previously selected time value
+ */
+ prevTime?: string;
- /** returns the Toolbar model
- */
- model?: ej.Toolbar.Model;
+ /** returns the current time value
+ */
+ value?: string;
+ }
- /** returns the name of the event
- */
- type?: string;
+ export interface OpenEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the TimePicker model
+ */
+ model?: ej.TimePicker.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the time value
+ */
+ value?: string;
+ }
+
+ export interface SelectEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the TimePicker model
+ */
+ model?: ej.TimePicker.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+
+ /** returns the previously selected time value
+ */
+ prevTime?: string;
+
+ /** returns the selected time value
+ */
+ value?: string;
+ }
+ }
+
+ class ToggleButton extends ej.Widget {
+ static fn: ToggleButton;
+ constructor(element: JQuery | Element, options?: ToggleButton.Model);
+ static Locale: any;
+ model: ToggleButton.Model;
+ defaults: ToggleButton.Model;
+
+ /** Allows you to destroy the ToggleButton widget.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** To disable the ToggleButton to prevent all user interactions.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** To enable the ToggleButton.
+ * @returns {void}
+ */
+ enable(): void;
+ }
+ export namespace ToggleButton {
+
+ export interface Model {
+
+ /** Specify the icon in active state to the toggle button and it will be aligned from left margin of the button.
+ */
+ activePrefixIcon?: string;
+
+ /** Specify the icon in active state to the toggle button and it will be aligned from right margin of the button.
+ */
+ activeSuffixIcon?: string;
+
+ /** Sets the text when ToggleButton is in active state i.e.,checked state.
+ * @Default {null}
+ */
+ activeText?: string;
+
+ /** Specifies the contentType of the ToggleButton. See ContentType as below
+ * @Default {ej.ContentType.TextOnly}
+ */
+ contentType?: ej.ContentType | string;
+
+ /** Specify the CSS class to the ToggleButton to achieve custom theme.
+ */
+ cssClass?: string;
+
+ /** Specify the icon in default state to the toggle button and it will be aligned from left margin of the button.
+ */
+ defaultPrefixIcon?: string;
+
+ /** Specify the icon in default state to the toggle button and it will be aligned from right margin of the button.
+ */
+ defaultSuffixIcon?: string;
+
+ /** Specifies the text of the ToggleButton, when the control is a default state. i.e., unChecked state.
+ * @Default {null}
+ */
+ defaultText?: string;
+
+ /** Specifies the state of the ToggleButton.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Save current model value to browser cookies for maintaining states. When refreshing the ToggleButton control page, the model value is applied from browser cookies or HTML 5local storage.
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Specify the Right to Left direction of the ToggleButton.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Specifies the height of the ToggleButton.
+ * @Default {28pixel}
+ */
+ height?: number | string;
+
+ /** It allows to define the characteristics of the ToggleButton control. It will helps to extend the capability of an HTML element.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Specifies the image position of the ToggleButton.
+ * @Default {ej.ImagePosition.ImageLeft}
+ */
+ imagePosition?: ej.ImagePosition | string;
+
+ /** Allows to prevents the control switched to checked (active) state.
+ * @Default {false}
+ */
+ preventToggle?: boolean;
+
+ /** Displays the ToggleButton with rounded corners.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Specifies the size of the ToggleButton. See ButtonSize as below
+ * @Default {ej.ButtonSize.Normal}
+ */
+ size?: ej.ButtonSize | string;
+
+ /** It allows to define the ToggleButton state to checked(Active) or unchecked(Default) at initial time.
+ * @Default {false}
+ */
+ toggleState?: boolean;
+
+ /** Specifies the type of the ToggleButton. See ButtonType as below
+ * @Default {ej.ButtonType.Button}
+ */
+ type?: ej.ButtonType | string;
+
+ /** Specifies the width of the ToggleButton.
+ * @Default {100pixel}
+ */
+ width?: number | string;
+
+ /** Fires when ToggleButton control state is changed successfully. */
+ change?(e: ChangeEventArgs): void;
+
+ /** Fires when ToggleButton control is clicked successfully. */
+ click?(e: ClickEventArgs): void;
+
+ /** Fires when ToggleButton control is created successfully. */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires when ToggleButton control is destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
+ }
+
+ export interface ChangeEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** return the toggle button checked state
+ */
+ isChecked?: boolean;
+
+ /** returns the toggle button model
+ */
+ model?: ej.ToggleButton.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface ClickEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** return the toggle button checked state
+ */
+ isChecked?: boolean;
+
+ /** returns the toggle button model
+ */
+ model?: ej.ToggleButton.Model;
+
+ /** return the toggle button state
+ */
+ status?: boolean;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface CreateEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the toggle button model
+ */
+ model?: ej.ToggleButton.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the toggle button model
+ */
+ model?: ej.ToggleButton.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+ }
+
+ class Toolbar extends ej.Widget {
+ static fn: Toolbar;
+ constructor(element: JQuery | Element, options?: Toolbar.Model);
+ static Locale: any;
+ model: Toolbar.Model;
+ defaults: Toolbar.Model;
+
+ /** Deselect the specified Toolbar item.
+ * @param {any} The element need to be deselected
+ * @returns {void}
+ */
+ deselectItem(element: any): void;
+
+ /** Deselect the Toolbar item based on specified id.
+ * @param {string} The ID of the element need to be deselected
+ * @returns {void}
+ */
+ deselectItemByID(ID: string): void;
+
+ /** Allows you to destroy the Toolbar widget.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** To disable all items in the Toolbar control.
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Disable the specified Toolbar item.
+ * @param {any} The element need to be disabled
+ * @returns {void}
+ */
+ disableItem(element: any): void;
+
+ /** Disable the Toolbar item based on specified item id in the Toolbar.
+ * @param {string} The ID of the element need to be disabled
+ * @returns {void}
+ */
+ disableItemByID(ID: string): void;
+
+ /** Enable the Toolbar if it is in disabled state.
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Enable the Toolbar item based on specified item.
+ * @param {any} The element need to be enabled
+ * @returns {void}
+ */
+ enableItem(element: any): void;
+
+ /** Enable the Toolbar item based on specified item id in the Toolbar.
+ * @param {string} The ID of the element need to be enabled
+ * @returns {void}
+ */
+ enableItemByID(ID: string): void;
+
+ /** To hide the Toolbar
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** Remove the item from toolbar, based on specified item.
+ * @param {any} The element need to be removed
+ * @returns {void}
+ */
+ removeItem(element: any): void;
+
+ /** Remove the item from toolbar, based on specified item id in the Toolbar.
+ * @param {string} The ID of the element need to be removed
+ * @returns {void}
+ */
+ removeItemByID(ID: string): void;
+
+ /** Selects the item from toolbar, based on specified item.
+ * @param {any} The element need to be selected
+ * @returns {void}
+ */
+ selectItem(element: any): void;
+
+ /** Selects the item from toolbar, based on specified item id in the Toolbar.
+ * @param {string} The ID of the element need to be selected
+ * @returns {void}
+ */
+ selectItemByID(ID: string): void;
+
+ /** To show the Toolbar.
+ * @returns {void}
+ */
+ show(): void;
+ }
+ export namespace Toolbar {
+
+ export interface Model {
+
+ /** Sets the root CSS class for Toolbar control to achieve the custom theme.
+ */
+ cssClass?: string;
+
+ /** Specifies dataSource value for the Toolbar control during initialization.
+ * @Default {null}
+ */
+ dataSource?: any;
+
+ /** Disables an Item or set of Items that are enabled in the Toolbar
+ * @Default {[]}
+ */
+ disabledItemIndices?: any[];
+
+ /** Specifies the Toolbar control state.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Enables an Item or set of Items that are disabled in the Toolbar
+ * @Default {[]}
+ */
+ enabledItemIndices?: any[];
+
+ /** Specifies enableRTL property to align the Toolbar control from right to left direction.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Allows to separate the each UL items in the Toolbar control.
+ * @Default {false}
+ */
+ enableSeparator?: boolean;
+
+ /** Specifies the mapping fields for the data items of the Toolbar
+ * @Default {null}
+ */
+ fields?: string;
+
+ /** Specifies the height of the Toolbar.
+ * @Default {28}
+ */
+ height?: number | string;
+
+ /** Specifies the list of HTML attributes to be added to toolbar control.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Specifies whether the Toolbar control is need to be show or hide.
+ * @Default {false}
+ */
+ hide?: boolean;
+
+ /** Enables/Disables the responsive support for Toolbar items during the window resizing time.
+ * @Default {false}
+ */
+ isResponsive?: boolean;
+
+ /** Specifies the items of Toolbar
+ * @Default {null}
+ */
+ Items?: Items;
+
+ /** Specifies the Toolbar orientation. See orientation
+ * @Default {Horizontal}
+ */
+ orientation?: ej.Orientation | string;
+
+ /** Specifies the query to retrieve the data from the online server. The query is used only when the online dataSource is used.
+ * @Default {null}
+ */
+ query?: any;
+
+ /** Specifies the Toolbar responsive type.
+ * @Default {Popup}
+ */
+ responsiveType?: ej.Toolbar.ResponsiveType | string;
+
+ /** Displays the Toolbar with rounded corners.
+ * @Default {false}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Specifies the width of the Toolbar.
+ */
+ width?: number | string;
+
+ /** Fires after Toolbar control is clicked. */
+ click?(e: ClickEventArgs): void;
- /** returns the target of the current object.
- */
- target?: any;
+ /** Fires after Toolbar control is created. */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires after Toolbar control is focused. */
+ focusOut?(e: FocusOutEventArgs): void;
- /** returns the target of the current object.
- */
- currentTarget?: any;
+ /** Fires when the Toolbar is destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
- /** return the Toolbar state
- */
- status?: boolean;
-}
+ /** Fires after Toolbar control item is hovered. */
+ itemHover?(e: ItemHoverEventArgs): void;
-export interface CreateEventArgs {
+ /** Fires after mouse leave from Toolbar control item. */
+ itemLeave?(e: ItemLeaveEventArgs): void;
+
+ /** Fires when the overflow popup of toolbar is opened. */
+ overflowOpen?(e: OverflowOpenEventArgs): void;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** Fires when the overflow popup of toolbar is closed. */
+ overflowClose?(e: OverflowCloseEventArgs): void;
+ }
- /** returns the Toolbar model
- */
- model?: ej.Toolbar.Model;
+ export interface ClickEventArgs {
- /** returns the name of the event
- */
- type?: string;
-}
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
-export interface FocusOutEventArgs {
+ /** returns the Toolbar model
+ */
+ model?: ej.Toolbar.Model;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the Toolbar model
- */
- model?: ej.Toolbar.Model;
+ /** returns the target of the current object.
+ */
+ target?: any;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the target of the current object.
+ */
+ currentTarget?: any;
-export interface DestroyEventArgs {
+ /** return the Toolbar state
+ */
+ status?: boolean;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface CreateEventArgs {
- /** returns the Toolbar model
- */
- model?: ej.Toolbar.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the Toolbar model
+ */
+ model?: ej.Toolbar.Model;
-export interface ItemHoverEventArgs {
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface FocusOutEventArgs {
- /** returns the Toolbar model
- */
- model?: ej.Toolbar.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the Toolbar model
+ */
+ model?: ej.Toolbar.Model;
- /** returns the target of the current object.
- */
- target?: any;
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** returns the target of the current object.
- */
- currentTarget?: any;
+ export interface DestroyEventArgs {
- /** return the Toolbar state
- */
- status?: boolean;
-}
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
-export interface ItemLeaveEventArgs {
+ /** returns the Toolbar model
+ */
+ model?: ej.Toolbar.Model;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** returns the Toolbar model
- */
- model?: ej.Toolbar.Model;
+ export interface ItemHoverEventArgs {
- /** returns the name of the event
- */
- type?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the target of the current object.
- */
- target?: any;
+ /** returns the Toolbar model
+ */
+ model?: ej.Toolbar.Model;
- /** returns the target of the current object.
- */
- currentTarget?: any;
+ /** returns the name of the event
+ */
+ type?: string;
- /** return the Toolbar state
- */
- status?: boolean;
-}
+ /** returns the target of the current object.
+ */
+ target?: any;
-export interface OverflowOpenEventArgs {
+ /** returns the target of the current object.
+ */
+ currentTarget?: any;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** return the Toolbar state
+ */
+ status?: boolean;
+ }
- /** returns the Toolbar model
- */
- model?: ej.Toolbar.Model;
+ export interface ItemLeaveEventArgs {
- /** returns the name of the event
- */
- type?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the current X position of the target .
- */
- clientX?: number;
+ /** returns the Toolbar model
+ */
+ model?: ej.Toolbar.Model;
- /** Returns the current Y position of the target .
- */
- clientY?: number;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the target of the current object.
- */
- currentTarget?: any;
-}
+ /** returns the target of the current object.
+ */
+ target?: any;
-export interface OverflowCloseEventArgs {
+ /** returns the target of the current object.
+ */
+ currentTarget?: any;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** return the Toolbar state
+ */
+ status?: boolean;
+ }
- /** returns the Toolbar model
- */
- model?: ej.Toolbar.Model;
+ export interface OverflowOpenEventArgs {
- /** returns the name of the event
- */
- type?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Returns the current X position of the target .
- */
- clientX?: number;
+ /** returns the Toolbar model
+ */
+ model?: ej.Toolbar.Model;
- /** Returns the current Y position of the target .
- */
- clientY?: number;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the target of the current object.
- */
- currentTarget?: any;
-}
+ /** Returns the current X position of the target .
+ */
+ clientX?: number;
-export interface Fields {
+ /** Returns the current Y position of the target .
+ */
+ clientY?: number;
- /** Defines the group name for the item.
- */
- group?: string;
+ /** returns the target of the current object.
+ */
+ currentTarget?: any;
+ }
- /** Defines the HTML attributes such as id, class, styles for the item to extend the capability.
- */
- htmlAttributes?: any;
+ export interface OverflowCloseEventArgs {
- /** Defines id for the tag.
- */
- id?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Defines the image attributes such as height, width, styles and so on.
- */
- imageAttributes?: string;
+ /** returns the Toolbar model
+ */
+ model?: ej.Toolbar.Model;
- /** Defines the imageURL for the image location.
- */
- imageUrl?: string;
-
- /** Defines the sprite CSS for the image tag.
- */
- spriteCssClass?: string;
-
- /** Defines the text content for the tag.
- */
- text?: string;
-
- /** Defines the tooltip text for the tag.
- */
- tooltipText?: string;
-
- /** Allows you to add template as toolbar item
- */
- template?: string;
-}
-
-export interface Items {
-
- /** Defines the group name for the item.
- */
- group?: string;
-
- /** Defines the HTML attributes such as id, class, styles for the item .
- */
- htmlAttributes?: any;
-
- /** Defines id for the tag.
- */
- id?: string;
-
- /** Defines the image attributes such as height, width, styles and so on.
- */
- imageAttributes?: string;
-
- /** Defines the imageURL for the image location.
- */
- imageUrl?: string;
-
- /** Defines the sprite CSS for the image tag.
- */
- spriteCssClass?: string;
-
- /** Defines the text content for the tag.
- */
- text?: string;
-
- /** Defines the tooltip text for the tag.
- */
- tooltipText?: string;
-
- /** Allows to add template as toolbar item.
- */
- template?: string;
-}
-
-enum ResponsiveType {
-
- ///To display the toolbar overflow items as popup
- Popup,
-
- ///To display the toolbar overflow items as inline toolbar
- Inline
-}
-
-}
-
-class TreeView extends ej.Widget {
- static fn: TreeView;
- constructor(element: JQuery | Element, options?: TreeView.Model);
- static Locale: any;
- model: TreeView.Model;
- defaults: TreeView.Model;
-
- /** To add a Node or collection of nodes in TreeView. If target tree node is specified, then the given nodes are added as child of target tree node, otherwise nodes are added in TreeView.
- * @param {string|any} New node text or JSON object
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {void}
- */
- addNode(newNodeText: string|any, target: string|any): void;
-
- /** To add a collection of nodes in TreeView. If target tree node is specified, then the given nodes are added as child of target tree node, otherwise nodes are added in TreeView.
- * @param {any|Array} New node details in JSON object
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {void}
- */
- addNodes(collection: any|any[], target: string|any): void;
-
- /** To check all the nodes in TreeView.
- * @returns {void}
- */
- checkAll(): void;
-
- /** To check a node in TreeView.
- * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
- * @returns {void}
- */
- checkNode(element: string|any|any[]): void;
-
- /** This method is used to collapse all nodes in TreeView control. If you want to collapse all nodes up to the specific level in
- * TreeView control then we need to pass levelUntil as argument to this method.
- * @param {number} TreeView nodes will collapse until the given level
- * @param {boolean} Weather exclude the hidden nodes of TreeView while collapse all nodes
- * @returns {void}
- */
- collapseAll(levelUntil?: number, excludeHiddenNodes?: boolean): void;
-
- /** To collapse a particular node in TreeView.
- * @param {string|any|Array} ID of TreeView node|object of TreeView node/collection of ID/object of TreeView nodes
- * @returns {void}
- */
- collapseNode(element: string|any|any[]): void;
-
- /** To disable the node in the TreeView.
- * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
- * @returns {void}
- */
- disableNode(element: string|any|any[]): void;
-
- /** To enable the node in the TreeView.
- * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
- * @returns {void}
- */
- enableNode(element: string|any|any[]): void;
-
- /** To ensure that the TreeView node is visible in the TreeView. This method is useful if we need select a TreeView node dynamically.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {boolean}
- */
- ensureVisible(element: string|any): boolean;
-
- /** This method is used to expand all nodes in TreeView control. If you want to expand all nodes up to the specific level in TreeView control
- * then we need to pass levelUntil as argument to this method.
- * @param {number} TreeView nodes will expand until the given level
- * @param {boolean} Weather exclude the hidden nodes of TreeView while expand all nodes
- * @returns {void}
- */
- expandAll(levelUntil?: number, excludeHiddenNodes?: boolean): void;
-
- /** To expandNode particular node in TreeView.
- * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
- * @returns {void}
- */
- expandNode(element: string|any|any[]): void;
-
- /** To get currently checked nodes in TreeView.
- * @returns {any}
- */
- getCheckedNodes(): any;
-
- /** To get currently checked nodes indexes in TreeView.
- * @returns {Array}
- */
- getCheckedNodesIndex(): any[];
-
- /** This method is used to get immediate child nodes of a node in TreeView control. If you want to get the all child nodes include nested
- * child nodes then we need to pass includeNestedChild as true along with element arguments to this method.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @param {boolean} Weather include nested child nodes of TreeView node
- * @returns {Array}
- */
- getChildren(element: string|any, includeNestedChild?: boolean): any[];
-
- /** To get number of nodes in TreeView.
- * @returns {number}
- */
- getNodeCount(): number;
-
- /** To get currently expanded nodes in TreeView.
- * @returns {any}
- */
- getExpandedNodes(): any;
-
- /** To get currently expanded nodes indexes in TreeView.
- * @returns {Array}
- */
- getExpandedNodesIndex(): any[];
-
- /** To get TreeView node by using index position in TreeView.
- * @param {number} Index position of TreeView node
- * @returns {any}
- */
- getNodeByIndex(index: number): any;
-
- /** To get TreeView node data such as id, text, parentId, selected, checked, expanded, level, childes and index.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {any}
- */
- getNode(element: string|any): any;
-
- /** To get current index position of TreeView node.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {number}
- */
- getNodeIndex(element: string|any): number;
-
- /** To get immediate parent TreeView node of particular TreeView node.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {any}
- */
- getParent(element: string|any): any;
-
- /** To get the currently selected node in TreeView.
- * @returns {any}
- */
- getSelectedNode(): any;
-
- /** To get the currently selected nodes in TreeView.
- * @returns {Array}
- */
- getSelectedNodes(): any[];
-
- /** To get the index position of currently selected node in TreeView.
- * @returns {number}
- */
- getSelectedNodeIndex(): number;
-
- /** To get the index positions of currently selected nodes in TreeView.
- * @returns {Array}
- */
- getSelectedNodesIndex(): any[];
-
- /** To get the text of a node in TreeView.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {string}
- */
- getText(element: string|any): string;
-
- /** To get the updated datasource of TreeView after performing some operation like drag and drop, node editing, adding and removing node.
- * @param {string|number} ID of TreeView node
- * @returns {Array}
- */
- getTreeData(id?: string|number): any[];
-
- /** To get currently visible nodes in TreeView.
- * @returns {any}
- */
- getVisibleNodes(): any;
-
- /** To check a node having child or not.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {boolean}
- */
- hasChildNode(element: string|any): boolean;
-
- /** To show nodes in TreeView.
- * @returns {void}
- */
- hide(): void;
-
- /** To hide particular node in TreeView.
- * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
- * @returns {void}
- */
- hideNode(element: string|any|any[]): void;
-
- /** To add a Node or collection of nodes after the particular TreeView node.
- * @param {string|any} New node text or JSON object
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {void}
- */
- insertAfter(newNodeText: string|any, target: string|any): void;
-
- /** To add a Node or collection of nodes before the particular TreeView node.
- * @param {string|any} New node text or JSON object
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {void}
- */
- insertBefore(newNodeText: string|any, target: string|any): void;
-
- /** To check the given TreeView node is checked or unchecked.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {boolean}
- */
- isNodeChecked(element: string|any): boolean;
-
- /** To check whether the child nodes are loaded of the given TreeView node.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {boolean}
- */
- isChildLoaded(element: string|any): boolean;
-
- /** To check the given TreeView node is disabled or enabled.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {boolean}
- */
- isDisabled(element: string|any): boolean;
-
- /** To check the given node is exist in TreeView.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {boolean}
- */
- isExist(element: string|any): boolean;
-
- /** To get the expand status of the given TreeView node.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {boolean}
- */
- isExpanded(element: string|any): boolean;
-
- /** To get the select status of the given TreeView node.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {boolean}
- */
- isSelected(element: string|any): boolean;
-
- /** To get the visibility status of the given TreeView node.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {boolean}
- */
- isVisible(element: string|any): boolean;
-
- /** To load the TreeView nodes from the particular URL. If target tree node is specified, then the given nodes are added as child of target tree node, otherwise nodes are added in TreeView.
- * @param {string} URL location, the data returned from the URL will be loaded in TreeView
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @returns {void}
- */
- loadData(URL: string, target: string|any): void;
-
- /** To move the TreeView node with in same TreeView. The new position of given TreeView node will be based on destination node and index position.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @param {number} New index position of given source node
- * @returns {void}
- */
- moveNode(sourceNode: string|any, destinationNode: string|any, index: number): void;
-
- /** To refresh the TreeView
- * @returns {void}
- */
- refresh(): void;
-
- /** To remove all the nodes in TreeView.
- * @returns {void}
- */
- removeAll(): void;
-
- /** To remove a node in TreeView.
- * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
- * @returns {void}
- */
- removeNode(element: string|any|any[]): void;
-
- /** To select all the TreeView nodes when enable allowMultiSelection property.
- * @returns {void}
- */
- selectAll(): void;
-
- /** This method is used to select a node in TreeView control. If you want to select the collection of nodes in TreeView control then we need to enable allowMultiSelection property.
- * @param {string|any|Array} ID of TreeView node/object of TreeView node/ collection of ID/object of TreeView nodes
- * @returns {void}
- */
- selectNode(element: string|any|any[]): void;
-
- /** To show nodes in TreeView.
- * @returns {void}
- */
- show(): void;
-
- /** To show a node in TreeView.
- * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
- * @returns {void}
- */
- showNode(element: string|any|any[]): void;
-
- /** To uncheck all the nodes in TreeView.
- * @returns {void}
- */
- unCheckAll(): void;
-
- /** To uncheck a node in TreeView.
- * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
- * @returns {void}
- */
- uncheckNode(element: string|any|any[]): void;
-
- /** To unselect all the TreeView nodes when enable allowMultiSelection property.
- * @returns {void}
- */
- unselectAll(): void;
-
- /** This method is used to unselect a node in TreeView control. If you want to unselect the collection of nodes in TreeView control then we need to enable allowMultiSelection property.
- * @param {string|any|Array} ID of TreeView node/object of TreeView node/ collection of ID/object of TreeView nodes
- * @returns {void}
- */
- unselectNode(element: string|any|any[]): void;
-
- /** To edit or update the text of the TreeView node.
- * @param {string|any} ID of TreeView node/object of TreeView node
- * @param {string} New text
- * @returns {void}
- */
- updateText(target: string|any, newText: string): void;
-}
-export namespace TreeView {
-
-export interface Model {
-
- /** Gets or sets a value that indicates whether to enable drag and drop a node within the same tree.
- * @Default {false}
- */
- allowDragAndDrop?: boolean;
-
- /** Gets or sets a value that indicates whether to enable drag and drop a node in inter ej.TreeView.
- * @Default {true}
- */
- allowDragAndDropAcrossControl?: boolean;
-
- /** Gets or sets a value that indicates whether to drop a node to a sibling of particular node.
- * @Default {true}
- */
- allowDropSibling?: boolean;
-
- /** Gets or sets a value that indicates whether to drop a node to a child of particular node.
- * @Default {true}
- */
- allowDropChild?: boolean;
-
- /** Gets or sets a value that indicates whether to enable node editing support for TreeView.
- * @Default {false}
- */
- allowEditing?: boolean;
-
- /** Gets or sets a value that indicates whether to enable keyboard support for TreeView actions like nodeSelection, nodeEditing, nodeExpand, nodeCollapse, nodeCut and Paste.
- * @Default {true}
- */
- allowKeyboardNavigation?: boolean;
-
- /** Gets or sets a value that indicates whether to enable multi selection support for TreeView.
- * @Default {false}
- */
- allowMultiSelection?: boolean;
-
- /** Allow us to specify the parent and child nodes to get auto check while we check or uncheck a node.
- * @Default {true}
- */
- autoCheck?: boolean;
-
- /** Allow us to specify the parent node to be retain in checked or unchecked state instead of going for indeterminate state.
- * @Default {false}
- */
- autoCheckParentNode?: boolean;
-
- /** Gets or sets a value that indicates the checkedNodes index collection as an array. The given array index position denotes the nodes, that are checked while rendering TreeView.
- * @Default {[]}
- */
- checkedNodes?: any[];
-
- /** Sets the root CSS class for TreeView which allow us to customize the appearance.
- */
- cssClass?: string;
-
- /** Gets or sets a value that indicates whether to enable or disable the animation effect while expanding or collapsing a node.
- * @Default {true}
- */
- enableAnimation?: boolean;
-
- /** Gets or sets a value that indicates whether a TreeView can be enabled or disabled. No actions can be performed while this property is set as false
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Allow us to prevent multiple nodes to be in expanded state. If it set to false, previously expanded node will be collapsed automatically, while we expand a node.
- * @Default {true}
- */
- enableMultipleExpand?: boolean;
-
- /** Sets a value that indicates whether to persist the TreeView model state in page using applicable medium i.e., HTML5 localStorage or cookies
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Gets or sets a value that indicates to align content in the TreeView control from right to left by setting the property as true.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Gets or sets a array of value that indicates the expandedNodes index collection as an array. The given array index position denotes the nodes, that are expanded while rendering TreeView.
- * @Default {[]}
- */
- expandedNodes?: any[];
-
- /** Gets or sets a value that indicates the TreeView node can be expand or collapse by using the specified action.
- * @Default {dblclick}
- */
- expandOn?: string;
-
- /** Gets or sets a fields object that allow us to map the data members with field properties in order to make the data binding easier.
- * @Default {null}
- */
- fields?: Fields;
-
- /** Gets or sets a value that indicates whether to enable full row selection support for TreeView.
- * @Default {false}
- */
- fullRowSelect?: boolean;
-
- /** Defines the height of the TreeView.
- * @Default {Null}
- */
- height?: string|number;
-
- /** Specifies the HTML Attributes for the TreeView. Using this API we can add custom attributes in TreeView control.
- * @Default {{}}
- */
- htmlAttributes?: any;
+ /** returns the name of the event
+ */
+ type?: string;
- /** Specifies the child nodes to be loaded on demand
- * @Default {false}
- */
- loadOnDemand?: boolean;
+ /** Returns the current X position of the target .
+ */
+ clientX?: number;
- /** Gets or Sets a value that indicates the index position of a tree node. The particular index tree node will be selected while rendering the TreeView.
- * @Default {-1}
- */
- selectedNode?: number;
+ /** Returns the current Y position of the target .
+ */
+ clientY?: number;
- /** Gets or sets a value that indicates the selectedNodes index collection as an array. The given array index position denotes the nodes, that are selected while rendering TreeView.
- * @Default {[]}
- */
- selectedNodes?: any[];
+ /** returns the target of the current object.
+ */
+ currentTarget?: any;
+ }
- /** Gets or sets a value that indicates whether to display or hide checkbox for all TreeView nodes.
- * @Default {false}
- */
- showCheckbox?: boolean;
+ export interface Fields {
- /** By using sortSettings property, you can customize the sorting option in TreeView control.
- */
- sortSettings?: SortSettings;
+ /** Defines the group name for the item.
+ */
+ group?: string;
- /** Allow us to use custom template in order to create TreeView.
- * @Default {null}
- */
- template?: string;
+ /** Defines the HTML attributes such as id, class, styles for the item to extend the capability.
+ */
+ htmlAttributes?: any;
- /** Defines the width of the TreeView.
- * @Default {Null}
- */
- width?: string|number;
+ /** Defines id for the tag.
+ */
+ id?: string;
- /** Fires before adding node to TreeView. */
- beforeAdd?(e: BeforeAddEventArgs): void;
+ /** Defines the image attributes such as height, width, styles and so on.
+ */
+ imageAttributes?: string;
- /** Fires before collapse a node. */
- beforeCollapse?(e: BeforeCollapseEventArgs): void;
+ /** Defines the imageURL for the image location.
+ */
+ imageUrl?: string;
+
+ /** Defines the sprite CSS for the image tag.
+ */
+ spriteCssClass?: string;
+
+ /** Defines the text content for the tag.
+ */
+ text?: string;
+
+ /** Defines the tooltip text for the tag.
+ */
+ tooltipText?: string;
+
+ /** Allows you to add template as toolbar item
+ */
+ template?: string;
+ }
+
+ export interface Items {
+
+ /** Defines the group name for the item.
+ */
+ group?: string;
+
+ /** Defines the HTML attributes such as id, class, styles for the item .
+ */
+ htmlAttributes?: any;
+
+ /** Defines id for the tag.
+ */
+ id?: string;
+
+ /** Defines the image attributes such as height, width, styles and so on.
+ */
+ imageAttributes?: string;
+
+ /** Defines the imageURL for the image location.
+ */
+ imageUrl?: string;
+
+ /** Defines the sprite CSS for the image tag.
+ */
+ spriteCssClass?: string;
+
+ /** Defines the text content for the tag.
+ */
+ text?: string;
+
+ /** Defines the tooltip text for the tag.
+ */
+ tooltipText?: string;
+
+ /** Allows to add template as toolbar item.
+ */
+ template?: string;
+ }
+
+ enum ResponsiveType {
+
+ ///To display the toolbar overflow items as popup
+ Popup,
+
+ ///To display the toolbar overflow items as inline toolbar
+ Inline
+ }
+
+ }
+
+ class TreeView extends ej.Widget {
+ static fn: TreeView;
+ constructor(element: JQuery | Element, options?: TreeView.Model);
+ static Locale: any;
+ model: TreeView.Model;
+ defaults: TreeView.Model;
+
+ /** To add a Node or collection of nodes in TreeView. If target tree node is specified, then the given nodes are added as child of target tree node, otherwise nodes are added in TreeView.
+ * @param {string|any} New node text or JSON object
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {void}
+ */
+ addNode(newNodeText: string | any, target: string | any): void;
+
+ /** To add a collection of nodes in TreeView. If target tree node is specified, then the given nodes are added as child of target tree node, otherwise nodes are added in TreeView.
+ * @param {any|Array} New node details in JSON object
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {void}
+ */
+ addNodes(collection: any | any[], target: string | any): void;
+
+ /** To check all the nodes in TreeView.
+ * @returns {void}
+ */
+ checkAll(): void;
+
+ /** To check a node in TreeView.
+ * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
+ * @returns {void}
+ */
+ checkNode(element: string | any | any[]): void;
+
+ /** This method is used to collapse all nodes in TreeView control. If you want to collapse all nodes up to the specific level in
+ * TreeView control then we need to pass levelUntil as argument to this method.
+ * @param {number} TreeView nodes will collapse until the given level
+ * @param {boolean} Weather exclude the hidden nodes of TreeView while collapse all nodes
+ * @returns {void}
+ */
+ collapseAll(levelUntil?: number, excludeHiddenNodes?: boolean): void;
+
+ /** To collapse a particular node in TreeView.
+ * @param {string|any|Array} ID of TreeView node|object of TreeView node/collection of ID/object of TreeView nodes
+ * @returns {void}
+ */
+ collapseNode(element: string | any | any[]): void;
+
+ /** To disable the node in the TreeView.
+ * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
+ * @returns {void}
+ */
+ disableNode(element: string | any | any[]): void;
+
+ /** To enable the node in the TreeView.
+ * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
+ * @returns {void}
+ */
+ enableNode(element: string | any | any[]): void;
+
+ /** To ensure that the TreeView node is visible in the TreeView. This method is useful if we need select a TreeView node dynamically.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {boolean}
+ */
+ ensureVisible(element: string | any): boolean;
+
+ /** This method is used to expand all nodes in TreeView control. If you want to expand all nodes up to the specific level in TreeView control
+ * then we need to pass levelUntil as argument to this method.
+ * @param {number} TreeView nodes will expand until the given level
+ * @param {boolean} Weather exclude the hidden nodes of TreeView while expand all nodes
+ * @returns {void}
+ */
+ expandAll(levelUntil?: number, excludeHiddenNodes?: boolean): void;
+
+ /** To expandNode particular node in TreeView.
+ * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
+ * @returns {void}
+ */
+ expandNode(element: string | any | any[]): void;
+
+ /** To get currently checked nodes in TreeView.
+ * @returns {any}
+ */
+ getCheckedNodes(): any;
+
+ /** To get currently checked nodes indexes in TreeView.
+ * @returns {Array}
+ */
+ getCheckedNodesIndex(): any[];
+
+ /** This method is used to get immediate child nodes of a node in TreeView control. If you want to get the all child nodes include nested
+ * child nodes then we need to pass includeNestedChild as true along with element arguments to this method.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @param {boolean} Weather include nested child nodes of TreeView node
+ * @returns {Array}
+ */
+ getChildren(element: string | any, includeNestedChild?: boolean): any[];
+
+ /** To get number of nodes in TreeView.
+ * @returns {number}
+ */
+ getNodeCount(): number;
+
+ /** To get currently expanded nodes in TreeView.
+ * @returns {any}
+ */
+ getExpandedNodes(): any;
+
+ /** To get currently expanded nodes indexes in TreeView.
+ * @returns {Array}
+ */
+ getExpandedNodesIndex(): any[];
+
+ /** To get TreeView node by using index position in TreeView.
+ * @param {number} Index position of TreeView node
+ * @returns {any}
+ */
+ getNodeByIndex(index: number): any;
+
+ /** To get TreeView node data such as id, text, parentId, selected, checked, expanded, level, childes and index.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {any}
+ */
+ getNode(element: string | any): any;
+
+ /** To get current index position of TreeView node.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {number}
+ */
+ getNodeIndex(element: string | any): number;
+
+ /** To get immediate parent TreeView node of particular TreeView node.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {any}
+ */
+ getParent(element: string | any): any;
+
+ /** To get the currently selected node in TreeView.
+ * @returns {any}
+ */
+ getSelectedNode(): any;
+
+ /** To get the currently selected nodes in TreeView.
+ * @returns {Array}
+ */
+ getSelectedNodes(): any[];
+
+ /** To get the index position of currently selected node in TreeView.
+ * @returns {number}
+ */
+ getSelectedNodeIndex(): number;
+
+ /** To get the index positions of currently selected nodes in TreeView.
+ * @returns {Array}
+ */
+ getSelectedNodesIndex(): any[];
+
+ /** To get the text of a node in TreeView.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {string}
+ */
+ getText(element: string | any): string;
+
+ /** To get the updated datasource of TreeView after performing some operation like drag and drop, node editing, adding and removing node.
+ * @param {string|number} ID of TreeView node
+ * @returns {Array}
+ */
+ getTreeData(id?: string | number): any[];
+
+ /** To get currently visible nodes in TreeView.
+ * @returns {any}
+ */
+ getVisibleNodes(): any;
+
+ /** To check a node having child or not.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {boolean}
+ */
+ hasChildNode(element: string | any): boolean;
+
+ /** To show nodes in TreeView.
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** To hide particular node in TreeView.
+ * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
+ * @returns {void}
+ */
+ hideNode(element: string | any | any[]): void;
+
+ /** To add a Node or collection of nodes after the particular TreeView node.
+ * @param {string|any} New node text or JSON object
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {void}
+ */
+ insertAfter(newNodeText: string | any, target: string | any): void;
+
+ /** To add a Node or collection of nodes before the particular TreeView node.
+ * @param {string|any} New node text or JSON object
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {void}
+ */
+ insertBefore(newNodeText: string | any, target: string | any): void;
+
+ /** To check the given TreeView node is checked or unchecked.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {boolean}
+ */
+ isNodeChecked(element: string | any): boolean;
+
+ /** To check whether the child nodes are loaded of the given TreeView node.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {boolean}
+ */
+ isChildLoaded(element: string | any): boolean;
+
+ /** To check the given TreeView node is disabled or enabled.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {boolean}
+ */
+ isDisabled(element: string | any): boolean;
+
+ /** To check the given node is exist in TreeView.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {boolean}
+ */
+ isExist(element: string | any): boolean;
+
+ /** To get the expand status of the given TreeView node.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {boolean}
+ */
+ isExpanded(element: string | any): boolean;
+
+ /** To get the select status of the given TreeView node.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {boolean}
+ */
+ isSelected(element: string | any): boolean;
+
+ /** To get the visibility status of the given TreeView node.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {boolean}
+ */
+ isVisible(element: string | any): boolean;
+
+ /** To load the TreeView nodes from the particular URL. If target tree node is specified, then the given nodes are added as child of target tree node, otherwise nodes are added in TreeView.
+ * @param {string} URL location, the data returned from the URL will be loaded in TreeView
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @returns {void}
+ */
+ loadData(URL: string, target: string | any): void;
+
+ /** To move the TreeView node with in same TreeView. The new position of given TreeView node will be based on destination node and index position.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @param {number} New index position of given source node
+ * @returns {void}
+ */
+ moveNode(sourceNode: string | any, destinationNode: string | any, index: number): void;
+
+ /** To refresh the TreeView
+ * @returns {void}
+ */
+ refresh(): void;
+
+ /** To remove all the nodes in TreeView.
+ * @returns {void}
+ */
+ removeAll(): void;
+
+ /** To remove a node in TreeView.
+ * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
+ * @returns {void}
+ */
+ removeNode(element: string | any | any[]): void;
+
+ /** To select all the TreeView nodes when enable allowMultiSelection property.
+ * @returns {void}
+ */
+ selectAll(): void;
+
+ /** This method is used to select a node in TreeView control. If you want to select the collection of nodes in TreeView control then we need to enable allowMultiSelection property.
+ * @param {string|any|Array} ID of TreeView node/object of TreeView node/ collection of ID/object of TreeView nodes
+ * @returns {void}
+ */
+ selectNode(element: string | any | any[]): void;
+
+ /** To show nodes in TreeView.
+ * @returns {void}
+ */
+ show(): void;
+
+ /** To show a node in TreeView.
+ * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
+ * @returns {void}
+ */
+ showNode(element: string | any | any[]): void;
+
+ /** To uncheck all the nodes in TreeView.
+ * @returns {void}
+ */
+ unCheckAll(): void;
+
+ /** To uncheck a node in TreeView.
+ * @param {string|any|Array} ID of TreeView node/object of TreeView node/collection of ID/object of TreeView nodes
+ * @returns {void}
+ */
+ uncheckNode(element: string | any | any[]): void;
+
+ /** To unselect all the TreeView nodes when enable allowMultiSelection property.
+ * @returns {void}
+ */
+ unselectAll(): void;
+
+ /** This method is used to unselect a node in TreeView control. If you want to unselect the collection of nodes in TreeView control then we need to enable allowMultiSelection property.
+ * @param {string|any|Array} ID of TreeView node/object of TreeView node/ collection of ID/object of TreeView nodes
+ * @returns {void}
+ */
+ unselectNode(element: string | any | any[]): void;
+
+ /** To edit or update the text of the TreeView node.
+ * @param {string|any} ID of TreeView node/object of TreeView node
+ * @param {string} New text
+ * @returns {void}
+ */
+ updateText(target: string | any, newText: string): void;
+ }
+ export namespace TreeView {
+
+ export interface Model {
+
+ /** Gets or sets a value that indicates whether to enable drag and drop a node within the same tree.
+ * @Default {false}
+ */
+ allowDragAndDrop?: boolean;
+
+ /** Gets or sets a value that indicates whether to enable drag and drop a node in inter ej.TreeView.
+ * @Default {true}
+ */
+ allowDragAndDropAcrossControl?: boolean;
+
+ /** Gets or sets a value that indicates whether to drop a node to a sibling of particular node.
+ * @Default {true}
+ */
+ allowDropSibling?: boolean;
+
+ /** Gets or sets a value that indicates whether to drop a node to a child of particular node.
+ * @Default {true}
+ */
+ allowDropChild?: boolean;
+
+ /** Gets or sets a value that indicates whether to enable node editing support for TreeView.
+ * @Default {false}
+ */
+ allowEditing?: boolean;
+
+ /** Gets or sets a value that indicates whether to enable keyboard support for TreeView actions like nodeSelection, nodeEditing, nodeExpand, nodeCollapse, nodeCut and Paste.
+ * @Default {true}
+ */
+ allowKeyboardNavigation?: boolean;
+
+ /** Gets or sets a value that indicates whether to enable multi selection support for TreeView.
+ * @Default {false}
+ */
+ allowMultiSelection?: boolean;
+
+ /** Allow us to specify the parent and child nodes to get auto check while we check or uncheck a node.
+ * @Default {true}
+ */
+ autoCheck?: boolean;
+
+ /** Allow us to specify the parent node to be retain in checked or unchecked state instead of going for indeterminate state.
+ * @Default {false}
+ */
+ autoCheckParentNode?: boolean;
+
+ /** Gets or sets a value that indicates the checkedNodes index collection as an array. The given array index position denotes the nodes, that are checked while rendering TreeView.
+ * @Default {[]}
+ */
+ checkedNodes?: any[];
+
+ /** Sets the root CSS class for TreeView which allow us to customize the appearance.
+ */
+ cssClass?: string;
+
+ /** Gets or sets a value that indicates whether to enable or disable the animation effect while expanding or collapsing a node.
+ * @Default {true}
+ */
+ enableAnimation?: boolean;
+
+ /** Gets or sets a value that indicates whether a TreeView can be enabled or disabled. No actions can be performed while this property is set as false
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Allow us to prevent multiple nodes to be in expanded state. If it set to false, previously expanded node will be collapsed automatically, while we expand a node.
+ * @Default {true}
+ */
+ enableMultipleExpand?: boolean;
+
+ /** Sets a value that indicates whether to persist the TreeView model state in page using applicable medium i.e., HTML5 localStorage or cookies
+ * @Default {false}
+ */
+ enablePersistence?: boolean;
+
+ /** Gets or sets a value that indicates to align content in the TreeView control from right to left by setting the property as true.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Gets or sets a array of value that indicates the expandedNodes index collection as an array. The given array index position denotes the nodes, that are expanded while rendering TreeView.
+ * @Default {[]}
+ */
+ expandedNodes?: any[];
+
+ /** Gets or sets a value that indicates the TreeView node can be expand or collapse by using the specified action.
+ * @Default {dblclick}
+ */
+ expandOn?: string;
+
+ /** Gets or sets a fields object that allow us to map the data members with field properties in order to make the data binding easier.
+ * @Default {null}
+ */
+ fields?: Fields;
+
+ /** Gets or sets a value that indicates whether to enable full row selection support for TreeView.
+ * @Default {false}
+ */
+ fullRowSelect?: boolean;
+
+ /** Defines the height of the TreeView.
+ * @Default {Null}
+ */
+ height?: string | number;
+
+ /** Specifies the HTML Attributes for the TreeView. Using this API we can add custom attributes in TreeView control.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
- /** Fires before cut node in TreeView. */
- beforeCut?(e: BeforeCutEventArgs): void;
+ /** Specifies the child nodes to be loaded on demand
+ * @Default {false}
+ */
+ loadOnDemand?: boolean;
- /** Fires before deleting node in TreeView. */
- beforeDelete?(e: BeforeDeleteEventArgs): void;
+ /** Gets or Sets a value that indicates the index position of a tree node. The particular index tree node will be selected while rendering the TreeView.
+ * @Default {-1}
+ */
+ selectedNode?: number;
- /** Fires before editing the node in TreeView. */
- beforeEdit?(e: BeforeEditEventArgs): void;
+ /** Gets or sets a value that indicates the selectedNodes index collection as an array. The given array index position denotes the nodes, that are selected while rendering TreeView.
+ * @Default {[]}
+ */
+ selectedNodes?: any[];
- /** Fires before expanding the node. */
- beforeExpand?(e: BeforeExpandEventArgs): void;
+ /** Gets or sets a value that indicates whether to display or hide checkbox for all TreeView nodes.
+ * @Default {false}
+ */
+ showCheckbox?: boolean;
- /** Fires before loading nodes to TreeView. */
- beforeLoad?(e: BeforeLoadEventArgs): void;
+ /** By using sortSettings property, you can customize the sorting option in TreeView control.
+ */
+ sortSettings?: SortSettings;
- /** Fires before paste node in TreeView. */
- beforePaste?(e: BeforePasteEventArgs): void;
+ /** Allow us to use custom template in order to create TreeView.
+ * @Default {null}
+ */
+ template?: string;
- /** Fires before selecting node in TreeView. */
- beforeSelect?(e: BeforeSelectEventArgs): void;
+ /** Defines the width of the TreeView.
+ * @Default {Null}
+ */
+ width?: string | number;
- /** Fires when TreeView created successfully. */
- create?(e: CreateEventArgs): void;
+ /** Fires before adding node to TreeView. */
+ beforeAdd?(e: BeforeAddEventArgs): void;
- /** Fires when TreeView destroyed successfully. */
- destroy?(e: DestroyEventArgs): void;
+ /** Fires before collapse a node. */
+ beforeCollapse?(e: BeforeCollapseEventArgs): void;
- /** Fires before nodeEdit Successful. */
- inlineEditValidation?(e: InlineEditValidationEventArgs): void;
+ /** Fires before cut node in TreeView. */
+ beforeCut?(e: BeforeCutEventArgs): void;
- /** Fires when key pressed successfully. */
- keyPress?(e: KeyPressEventArgs): void;
+ /** Fires before deleting node in TreeView. */
+ beforeDelete?(e: BeforeDeleteEventArgs): void;
- /** Fires when data load fails. */
- loadError?(e: LoadErrorEventArgs): void;
+ /** Fires before editing the node in TreeView. */
+ beforeEdit?(e: BeforeEditEventArgs): void;
- /** Fires when data loaded successfully. */
- loadSuccess?(e: LoadSuccessEventArgs): void;
+ /** Fires before expanding the node. */
+ beforeExpand?(e: BeforeExpandEventArgs): void;
- /** Fires once node added successfully. */
- nodeAdd?(e: NodeAddEventArgs): void;
+ /** Fires before loading nodes to TreeView. */
+ beforeLoad?(e: BeforeLoadEventArgs): void;
- /** Fires once node checked successfully. */
- nodeCheck?(e: NodeCheckEventArgs): void;
+ /** Fires before paste node in TreeView. */
+ beforePaste?(e: BeforePasteEventArgs): void;
- /** Fires when node clicked successfully. */
- nodeClick?(e: NodeClickEventArgs): void;
+ /** Fires before selecting node in TreeView. */
+ beforeSelect?(e: BeforeSelectEventArgs): void;
- /** Fires when node collapsed successfully. */
- nodeCollapse?(e: NodeCollapseEventArgs): void;
+ /** Fires when TreeView created successfully. */
+ create?(e: CreateEventArgs): void;
- /** Fires when node cut successfully. */
- nodeCut?(e: NodeCutEventArgs): void;
+ /** Fires when TreeView destroyed successfully. */
+ destroy?(e: DestroyEventArgs): void;
- /** Fires when node deleted successfully. */
- nodeDelete?(e: NodeDeleteEventArgs): void;
+ /** Fires before nodeEdit Successful. */
+ inlineEditValidation?(e: InlineEditValidationEventArgs): void;
- /** Fires when node dragging. */
- nodeDrag?(e: NodeDragEventArgs): void;
+ /** Fires when key pressed successfully. */
+ keyPress?(e: KeyPressEventArgs): void;
- /** Fires once node drag start successfully. */
- nodeDragStart?(e: NodeDragStartEventArgs): void;
+ /** Fires when data load fails. */
+ loadError?(e: LoadErrorEventArgs): void;
- /** Fires before the dragged node to be dropped. */
- nodeDragStop?(e: NodeDragStopEventArgs): void;
+ /** Fires when data loaded successfully. */
+ loadSuccess?(e: LoadSuccessEventArgs): void;
- /** Fires once node dropped successfully. */
- nodeDropped?(e: NodeDroppedEventArgs): void;
+ /** Fires once node added successfully. */
+ nodeAdd?(e: NodeAddEventArgs): void;
- /** Fires once node edited successfully. */
- nodeEdit?(e: NodeEditEventArgs): void;
+ /** Fires once node checked successfully. */
+ nodeCheck?(e: NodeCheckEventArgs): void;
- /** Fires once node expanded successfully. */
- nodeExpand?(e: NodeExpandEventArgs): void;
+ /** Fires when node clicked successfully. */
+ nodeClick?(e: NodeClickEventArgs): void;
- /** Fires once node pasted successfully. */
- nodePaste?(e: NodePasteEventArgs): void;
+ /** Fires when node collapsed successfully. */
+ nodeCollapse?(e: NodeCollapseEventArgs): void;
- /** Fires when node selected successfully. */
- nodeSelect?(e: NodeSelectEventArgs): void;
+ /** Fires when node cut successfully. */
+ nodeCut?(e: NodeCutEventArgs): void;
- /** Fires once node unchecked successfully. */
- nodeUncheck?(e: NodeUncheckEventArgs): void;
+ /** Fires when node deleted successfully. */
+ nodeDelete?(e: NodeDeleteEventArgs): void;
- /** Fires once node unselected successfully. */
- nodeUnselect?(e: NodeUnselectEventArgs): void;
+ /** Fires when node dragging. */
+ nodeDrag?(e: NodeDragEventArgs): void;
- /** Fires when TreeView nodes are loaded successfully */
- ready?(e: ReadyEventArgs): void;
-}
+ /** Fires once node drag start successfully. */
+ nodeDragStart?(e: NodeDragStartEventArgs): void;
-export interface BeforeAddEventArgs {
+ /** Fires before the dragged node to be dropped. */
+ nodeDragStop?(e: NodeDragStopEventArgs): void;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** Fires once node dropped successfully. */
+ nodeDropped?(e: NodeDroppedEventArgs): void;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** Fires once node edited successfully. */
+ nodeEdit?(e: NodeEditEventArgs): void;
- /** returns the name of the event
- */
- type?: string;
+ /** Fires once node expanded successfully. */
+ nodeExpand?(e: NodeExpandEventArgs): void;
- /** returns the given new node data
- */
- data?: string|any;
+ /** Fires once node pasted successfully. */
+ nodePaste?(e: NodePasteEventArgs): void;
- /** returns the parent element, the given new nodes to be appended to the given parent element
- */
- targetParent?: any;
+ /** Fires when node selected successfully. */
+ nodeSelect?(e: NodeSelectEventArgs): void;
- /** returns the given parent node details
- */
- parentDetails?: any;
-}
+ /** Fires once node unchecked successfully. */
+ nodeUncheck?(e: NodeUncheckEventArgs): void;
-export interface BeforeCollapseEventArgs {
+ /** Fires once node unselected successfully. */
+ nodeUnselect?(e: NodeUnselectEventArgs): void;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** Fires when TreeView nodes are loaded successfully */
+ ready?(e: ReadyEventArgs): void;
+ }
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ export interface BeforeAddEventArgs {
- /** returns the name of the event
- */
- type?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the value of the node
- */
- value?: string;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the current element of the node clicked
- */
- currentElement?: any;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the child nodes are loaded or not
- */
- isChildLoaded?: boolean;
+ /** returns the given new node data
+ */
+ data?: string | any;
- /** returns the id of currently clicked node
- */
- id?: string;
+ /** returns the parent element, the given new nodes to be appended to the given parent element
+ */
+ targetParent?: any;
- /** returns the parent id of currently clicked node
- */
- parentId?: string;
+ /** returns the given parent node details
+ */
+ parentDetails?: any;
+ }
- /** returns the format asynchronous or synchronous
- */
- async?: boolean;
-}
+ export interface BeforeCollapseEventArgs {
-export interface BeforeCutEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the value of the node
+ */
+ value?: string;
- /** returns the event object
- */
- event?: any;
+ /** returns the current element of the node clicked
+ */
+ currentElement?: any;
- /** returns the target element, the given node to be cut
- */
- target?: any;
+ /** returns the child nodes are loaded or not
+ */
+ isChildLoaded?: boolean;
- /** returns the given target node values
- */
- nodeDetails?: any;
+ /** returns the id of currently clicked node
+ */
+ id?: string;
- /** returns the key pressed key code value
- */
- keyCode?: number;
-}
+ /** returns the parent id of currently clicked node
+ */
+ parentId?: string;
-export interface BeforeDeleteEventArgs {
+ /** returns the format asynchronous or synchronous
+ */
+ async?: boolean;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface BeforeCutEventArgs {
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the event object
- */
- event?: any;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the target element, the given node to be deleted
- */
- target?: any;
+ /** returns the event object
+ */
+ event?: any;
- /** returns the given target node values
- */
- nodeDetails?: any;
+ /** returns the target element, the given node to be cut
+ */
+ target?: any;
- /** returns the current parent element of the target node
- */
- parentElement?: any;
+ /** returns the given target node values
+ */
+ nodeDetails?: any;
- /** returns the parent node values
- */
- parentDetails?: any;
+ /** returns the key pressed key code value
+ */
+ keyCode?: number;
+ }
- /** returns the currently removed nodes
- */
- removedNodes?: any[];
-}
+ export interface BeforeDeleteEventArgs {
-export interface BeforeEditEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the event object
+ */
+ event?: any;
- /** returns the current element of the node clicked
- */
- currentElement?: any;
-}
+ /** returns the target element, the given node to be deleted
+ */
+ target?: any;
-export interface BeforeExpandEventArgs {
+ /** returns the given target node values
+ */
+ nodeDetails?: any;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the current parent element of the target node
+ */
+ parentElement?: any;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the parent node values
+ */
+ parentDetails?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the currently removed nodes
+ */
+ removedNodes?: any[];
+ }
- /** returns the value of the node
- */
- value?: string;
+ export interface BeforeEditEventArgs {
- /** if the child node is ready to expanded state; otherwise, false.
- */
- isChildLoaded?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the current element of the node clicked
- */
- currentElement?: any;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the id of currently clicked node
- */
- id?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the parent id of currently clicked node
- */
- parentId?: string;
+ /** returns the current element of the node clicked
+ */
+ currentElement?: any;
+ }
- /** returns the format asynchronous or synchronous
- */
- async?: boolean;
-}
+ export interface BeforeExpandEventArgs {
-export interface BeforeLoadEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the value of the node
+ */
+ value?: string;
- /** returns the AJAX settings object
- */
- AjaxOptions?: any;
-}
+ /** if the child node is ready to expanded state; otherwise, false.
+ */
+ isChildLoaded?: boolean;
-export interface BeforePasteEventArgs {
+ /** returns the current element of the node clicked
+ */
+ currentElement?: any;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the id of currently clicked node
+ */
+ id?: string;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the parent id of currently clicked node
+ */
+ parentId?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the format asynchronous or synchronous
+ */
+ async?: boolean;
+ }
- /** returns the event object
- */
- event?: any;
+ export interface BeforeLoadEventArgs {
- /** returns the target element, the given node to be pasted
- */
- target?: any;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the given target node values
- */
- nodeDetails?: any;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the key pressed key code value
- */
- keyCode?: number;
-}
+ /** returns the name of the event
+ */
+ type?: string;
-export interface BeforeSelectEventArgs {
+ /** returns the AJAX settings object
+ */
+ AjaxOptions?: any;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface BeforePasteEventArgs {
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the target element, the given node to be selected
- */
- target?: any;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the given target node values
- */
- nodeDetails?: any;
-}
+ /** returns the event object
+ */
+ event?: any;
-export interface CreateEventArgs {
+ /** returns the target element, the given node to be pasted
+ */
+ target?: any;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the given target node values
+ */
+ nodeDetails?: any;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the key pressed key code value
+ */
+ keyCode?: number;
+ }
- /** returns the name of the event
- */
- type?: string;
-}
+ export interface BeforeSelectEventArgs {
-export interface DestroyEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the event
- */
- type?: string;
-}
+ /** returns the target element, the given node to be selected
+ */
+ target?: any;
-export interface InlineEditValidationEventArgs {
+ /** returns the given target node values
+ */
+ nodeDetails?: any;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface CreateEventArgs {
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the new entered text for the node
- */
- newText?: string;
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** returns the current node element id
- */
- id?: any;
+ export interface DestroyEventArgs {
- /** returns the old node text
- */
- oldText?: string;
-}
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
-export interface KeyPressEventArgs {
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the name of the event
+ */
+ type?: string;
+ }
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ export interface InlineEditValidationEventArgs {
- /** returns the name of the event
- */
- type?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the event object
- */
- event?: any;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the current element of the node clicked
- */
- currentElement?: any;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the value of the node
- */
- value?: string;
+ /** returns the new entered text for the node
+ */
+ newText?: string;
- /** returns node path from root element
- */
- path?: string;
+ /** returns the current node element id
+ */
+ id?: any;
- /** returns the key pressed key code value
- */
- keyCode?: number;
+ /** returns the old node text
+ */
+ oldText?: string;
+ }
- /** it returns when the current node is in expanded state; otherwise, false.
- */
- isExpanded?: boolean;
+ export interface KeyPressEventArgs {
- /** returns the id of current TreeView node
- */
- id?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the parentId of current TreeView node
- */
- parentId?: string;
-}
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
-export interface LoadErrorEventArgs {
+ /** returns the name of the event
+ */
+ type?: string;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the event object
+ */
+ event?: any;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the current element of the node clicked
+ */
+ currentElement?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the value of the node
+ */
+ value?: string;
- /** returns the AJAX error object
- */
- error?: any;
-}
+ /** returns node path from root element
+ */
+ path?: string;
-export interface LoadSuccessEventArgs {
+ /** returns the key pressed key code value
+ */
+ keyCode?: number;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** it returns when the current node is in expanded state; otherwise, false.
+ */
+ isExpanded?: boolean;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the id of current TreeView node
+ */
+ id?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the parentId of current TreeView node
+ */
+ parentId?: string;
+ }
- /** returns the success data from the URL
- */
- data?: any;
+ export interface LoadErrorEventArgs {
- /** returns the target parent element, the data returned from the URL to be appended to the given parent element, else in TreeView
- */
- targetParent?: any;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the given parent node details
- */
- parentDetails?: any;
-}
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
-export interface NodeAddEventArgs {
+ /** returns the name of the event
+ */
+ type?: string;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the AJAX error object
+ */
+ error?: any;
+ }
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ export interface LoadSuccessEventArgs {
- /** returns the name of the event
- */
- type?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the added data, that are given initially
- */
- data?: any;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the newly added elements
- */
- nodes?: any;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the target parent element of the added element
- */
- parentElement?: any;
+ /** returns the success data from the URL
+ */
+ data?: any;
- /** returns the given parent node details
- */
- parentDetails?: any;
-}
+ /** returns the target parent element, the data returned from the URL to be appended to the given parent element, else in TreeView
+ */
+ targetParent?: any;
-export interface NodeCheckEventArgs {
+ /** returns the given parent node details
+ */
+ parentDetails?: any;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface NodeAddEventArgs {
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the event object
- */
- event?: any;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the value of the node
- */
- value?: string;
+ /** returns the added data, that are given initially
+ */
+ data?: any;
- /** returns the id of the current element of the node clicked
- */
- id?: string;
+ /** returns the newly added elements
+ */
+ nodes?: any;
- /** returns the id of the parent element of current element of the node clicked
- */
- parentId?: string;
+ /** returns the target parent element of the added element
+ */
+ parentElement?: any;
- /** returns the current element of the node clicked
- */
- currentElement?: any;
+ /** returns the given parent node details
+ */
+ parentDetails?: any;
+ }
- /** it returns true when the node checkbox is checked; otherwise, false.
- */
- isChecked?: boolean;
+ export interface NodeCheckEventArgs {
- /** it returns the currently checked node name
- */
- currentNode?: any[];
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** it returns the currently checked and its child node details
- */
- currentCheckedNodes?: any[];
-}
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
-export interface NodeClickEventArgs {
+ /** returns the name of the event
+ */
+ type?: string;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the event object
+ */
+ event?: any;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the value of the node
+ */
+ value?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the id of the current element of the node clicked
+ */
+ id?: string;
- /** returns the event object
- */
- event?: any;
+ /** returns the id of the parent element of current element of the node clicked
+ */
+ parentId?: string;
- /** returns the current element of the node clicked
- */
- currentElement?: any;
+ /** returns the current element of the node clicked
+ */
+ currentElement?: any;
- /** returns the id of currently clicked TreeView node
- */
- id?: string;
+ /** it returns true when the node checkbox is checked; otherwise, false.
+ */
+ isChecked?: boolean;
- /** returns the parentId of currently clicked TreeView node
- */
- parentId?: string;
-}
+ /** it returns the currently checked node name
+ */
+ currentNode?: any[];
-export interface NodeCollapseEventArgs {
+ /** it returns the currently checked and its child node details
+ */
+ currentCheckedNodes?: any[];
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface NodeClickEventArgs {
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the id of the current element of the node clicked
- */
- id?: string;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the id of the parent element of current element of the node clicked
- */
- parentId?: string;
+ /** returns the event object
+ */
+ event?: any;
- /** returns the value of the node
- */
- value?: string;
+ /** returns the current element of the node clicked
+ */
+ currentElement?: any;
- /** returns the current element of the node clicked
- */
- currentElement?: any;
+ /** returns the id of currently clicked TreeView node
+ */
+ id?: string;
- /** returns the child nodes are loaded or not
- */
- isChildLoaded?: boolean;
+ /** returns the parentId of currently clicked TreeView node
+ */
+ parentId?: string;
+ }
- /** returns the format asynchronous or synchronous
- */
- async?: boolean;
-}
+ export interface NodeCollapseEventArgs {
-export interface NodeCutEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the id of the current element of the node clicked
+ */
+ id?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the event object
- */
- event?: any;
+ /** returns the id of the parent element of current element of the node clicked
+ */
+ parentId?: string;
- /** returns the current parent element of the cut node
- */
- parentElement?: any;
+ /** returns the value of the node
+ */
+ value?: string;
- /** returns the given parent node details
- */
- parentDetails?: any;
+ /** returns the current element of the node clicked
+ */
+ currentElement?: any;
- /** returns the key pressed key code value
- */
- keyCode?: number;
-}
+ /** returns the child nodes are loaded or not
+ */
+ isChildLoaded?: boolean;
-export interface NodeDeleteEventArgs {
+ /** returns the format asynchronous or synchronous
+ */
+ async?: boolean;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface NodeCutEventArgs {
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the event object
- */
- event?: any;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the current parent element of the deleted node
- */
- parentElement?: any;
+ /** returns the event object
+ */
+ event?: any;
- /** returns the given parent node details
- */
- parentDetails?: any;
+ /** returns the current parent element of the cut node
+ */
+ parentElement?: any;
- /** returns the currently removed nodes
- */
- removedNodes?: any[];
-}
+ /** returns the given parent node details
+ */
+ parentDetails?: any;
-export interface NodeDragEventArgs {
+ /** returns the key pressed key code value
+ */
+ keyCode?: number;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface NodeDeleteEventArgs {
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the original drag target
- */
- dragTarget?: any;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the current target TreeView node
- */
- target?: any;
+ /** returns the event object
+ */
+ event?: any;
- /** returns the current target details
- */
- targetElementData?: any;
+ /** returns the current parent element of the deleted node
+ */
+ parentElement?: any;
- /** returns the current parent element of the target node
- */
- draggedElement?: any;
+ /** returns the given parent node details
+ */
+ parentDetails?: any;
- /** returns the given parent node details
- */
- draggedElementData?: any;
+ /** returns the currently removed nodes
+ */
+ removedNodes?: any[];
+ }
- /** returns the event object
- */
- event?: any;
-}
+ export interface NodeDragEventArgs {
-export interface NodeDragStartEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the original drag target
+ */
+ dragTarget?: any;
- /** returns the original drag target
- */
- dragTarget?: any;
+ /** returns the current target TreeView node
+ */
+ target?: any;
- /** returns the current dragging parent TreeView node
- */
- parentElement?: any;
+ /** returns the current target details
+ */
+ targetElementData?: any;
- /** returns the current dragging parent TreeView node details
- */
- parentElementData?: any;
+ /** returns the current parent element of the target node
+ */
+ draggedElement?: any;
- /** returns the current parent element of the dragging node
- */
- target?: any;
+ /** returns the given parent node details
+ */
+ draggedElementData?: any;
- /** returns the given parent node details
- */
- targetElementData?: any;
+ /** returns the event object
+ */
+ event?: any;
+ }
- /** returns the event object
- */
- event?: any;
-}
+ export interface NodeDragStartEventArgs {
-export interface NodeDragStopEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the original drag target
+ */
+ dragTarget?: any;
- /** returns the original drop target
- */
- dropTarget?: any;
+ /** returns the current dragging parent TreeView node
+ */
+ parentElement?: any;
- /** returns the current dragged TreeView node
- */
- draggedElement?: any;
+ /** returns the current dragging parent TreeView node details
+ */
+ parentElementData?: any;
- /** returns the current dragged TreeView node details
- */
- draggedElementData?: any;
+ /** returns the current parent element of the dragging node
+ */
+ target?: any;
- /** returns the current parent element of the dragged node
- */
- target?: any;
+ /** returns the given parent node details
+ */
+ targetElementData?: any;
- /** returns the given parent node details
- */
- targetElementData?: any;
+ /** returns the event object
+ */
+ event?: any;
+ }
- /** returns the drop position such as before, after or over
- */
- position?: string;
+ export interface NodeDragStopEventArgs {
- /** returns the event object
- */
- event?: any;
-}
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
-export interface NodeDroppedEventArgs {
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the original drop target
+ */
+ dropTarget?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the current dragged TreeView node
+ */
+ draggedElement?: any;
- /** returns the original drop target
- */
- dropTarget?: any;
+ /** returns the current dragged TreeView node details
+ */
+ draggedElementData?: any;
- /** returns the current dropped TreeView node
- */
- droppedElement?: any;
+ /** returns the current parent element of the dragged node
+ */
+ target?: any;
- /** returns the current dropped TreeView node details
- */
- droppedElementData?: any;
+ /** returns the given parent node details
+ */
+ targetElementData?: any;
- /** returns the current parent element of the dropped node
- */
- target?: any;
+ /** returns the drop position such as before, after or over
+ */
+ position?: string;
- /** returns the given parent node details
- */
- targetElementData?: any;
+ /** returns the event object
+ */
+ event?: any;
+ }
- /** returns the drop position such as before, after or over
- */
- position?: string;
+ export interface NodeDroppedEventArgs {
- /** returns the event object
- */
- event?: any;
-}
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
-export interface NodeEditEventArgs {
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the original drop target
+ */
+ dropTarget?: any;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the current dropped TreeView node
+ */
+ droppedElement?: any;
- /** returns the id of the element
- */
- id?: string;
+ /** returns the current dropped TreeView node details
+ */
+ droppedElementData?: any;
- /** returns the oldText of the element
- */
- oldText?: string;
+ /** returns the current parent element of the dropped node
+ */
+ target?: any;
- /** returns the newText of the element
- */
- newText?: string;
+ /** returns the given parent node details
+ */
+ targetElementData?: any;
- /** returns the event object
- */
- event?: any;
+ /** returns the drop position such as before, after or over
+ */
+ position?: string;
- /** returns the target element, the given node to be cut
- */
- target?: any;
+ /** returns the event object
+ */
+ event?: any;
+ }
- /** returns the given target node values
- */
- nodeDetails?: any;
-}
+ export interface NodeEditEventArgs {
-export interface NodeExpandEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the id of the element
+ */
+ id?: string;
- /** returns the value of the node
- */
- value?: string;
+ /** returns the oldText of the element
+ */
+ oldText?: string;
- /** if the child node is ready to expanded state; otherwise, false.
- */
- isChildLoaded?: boolean;
+ /** returns the newText of the element
+ */
+ newText?: string;
- /** returns the current element of the node clicked
- */
- currentElement?: any;
+ /** returns the event object
+ */
+ event?: any;
- /** returns the id of currently clicked node
- */
- id?: string;
+ /** returns the target element, the given node to be cut
+ */
+ target?: any;
- /** returns the parent id of currently clicked node
- */
- parentId?: string;
+ /** returns the given target node values
+ */
+ nodeDetails?: any;
+ }
- /** returns the format asynchronous or synchronous
- */
- async?: boolean;
-}
+ export interface NodeExpandEventArgs {
-export interface NodePasteEventArgs {
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the value of the node
+ */
+ value?: string;
- /** returns the event object
- */
- event?: any;
+ /** if the child node is ready to expanded state; otherwise, false.
+ */
+ isChildLoaded?: boolean;
- /** returns the pasted element
- */
- target?: any;
+ /** returns the current element of the node clicked
+ */
+ currentElement?: any;
- /** returns the given target node values
- */
- nodeDetails?: any;
+ /** returns the id of currently clicked node
+ */
+ id?: string;
- /** returns the key pressed key code value
- */
- keyCode?: number;
-}
+ /** returns the parent id of currently clicked node
+ */
+ parentId?: string;
-export interface NodeSelectEventArgs {
+ /** returns the format asynchronous or synchronous
+ */
+ async?: boolean;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface NodePasteEventArgs {
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the id of the current element of the node clicked
- */
- id?: any;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the id of the parent element of current element of the node clicked
- */
- parentId?: any;
+ /** returns the event object
+ */
+ event?: any;
- /** returns the current selected nodes index of TreeView
- */
- selectedNodes?: any[];
+ /** returns the pasted element
+ */
+ target?: any;
- /** returns the value of the node
- */
- value?: string;
+ /** returns the given target node values
+ */
+ nodeDetails?: any;
- /** returns the current element of the node clicked
- */
- currentElement?: any;
-}
+ /** returns the key pressed key code value
+ */
+ keyCode?: number;
+ }
-export interface NodeUncheckEventArgs {
+ export interface NodeSelectEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** returns the name of the event
- */
- type?: string;
+ /** returns the name of the event
+ */
+ type?: string;
- /** returns the event object
- */
- event?: any;
+ /** returns the id of the current element of the node clicked
+ */
+ id?: any;
- /** returns the id of the current element of the node clicked
- */
- id?: any;
+ /** returns the id of the parent element of current element of the node clicked
+ */
+ parentId?: any;
- /** returns the id of the parent element of current element of the node clicked
- */
- parentId?: any;
+ /** returns the current selected nodes index of TreeView
+ */
+ selectedNodes?: any[];
- /** returns the value of the node
- */
- value?: string;
+ /** returns the value of the node
+ */
+ value?: string;
- /** returns the current element of the node clicked
- */
- currentElement?: any;
+ /** returns the current element of the node clicked
+ */
+ currentElement?: any;
+ }
- /** it returns true when the node checkbox is checked; otherwise, false.
- */
- isChecked?: boolean;
+ export interface NodeUncheckEventArgs {
- /** it returns currently unchecked node name
- */
- currentNode?: string;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** it returns currently unchecked node and its child node details.
- */
- currentUncheckedNodes?: any[];
-}
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
-export interface NodeUnselectEventArgs {
+ /** returns the name of the event
+ */
+ type?: string;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** returns the event object
+ */
+ event?: any;
- /** returns the current element of the node unselected
- */
- currentElement?: any;
+ /** returns the id of the current element of the node clicked
+ */
+ id?: any;
- /** returns the id of the current element of the node unselected
- */
- id?: string;
+ /** returns the id of the parent element of current element of the node clicked
+ */
+ parentId?: any;
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
+ /** returns the value of the node
+ */
+ value?: string;
- /** returns the id of the parent element of current element of the node unselected
- */
- parentId?: string;
+ /** returns the current element of the node clicked
+ */
+ currentElement?: any;
- /** returns the current selected nodes index of TreeView
- */
- selectedNodes?: any[];
+ /** it returns true when the node checkbox is checked; otherwise, false.
+ */
+ isChecked?: boolean;
- /** returns the name of the event
- */
- type?: string;
+ /** it returns currently unchecked node name
+ */
+ currentNode?: string;
- /** returns the value of the node
- */
- value?: string;
-}
-
-export interface ReadyEventArgs {
-
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
-
- /** returns the TreeView model
- */
- model?: ej.TreeView.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface Fields {
-
- /** It receives the child level or inner level data source such as Essential DataManager object and JSON object.
- */
- child?: any;
-
- /** It receives Essential DataManager object and JSON object.
- */
- dataSource?: any;
-
- /** Specifies the node to be in expanded state.
- */
- expanded?: string;
-
- /** Its allow us to indicate whether the node has child or not in load on demand
- */
- hasChild?: string;
-
- /** Specifies the HTML Attributes to "li" item list.
- */
- htmlAttribute?: any;
-
- /** Specifies the id to TreeView node items list.
- */
- id?: string;
-
- /** Specifies the image attribute to “img” tag inside items list
- */
- imageAttribute?: any;
-
- /** Specifies the HTML Attributes to "li" item list.
- */
- imageUrl?: string;
-
- /** If its true Checkbox node will be checked when rendered with checkbox.
- */
- isChecked?: string;
-
- /** Specifies the link attribute to “a” tag in item list.
- */
- linkAttribute?: any;
-
- /** Specifies the parent id of the node. The nodes are listed as child nodes of the specified parent node by using its parent id.
- */
- parentId?: string;
-
- /** It receives query to retrieve data from the table (query is same as SQL).
- */
- query?: any;
-
- /** Allow us to specify the node to be in selected state
- */
- selected?: string;
-
- /** Specifies the sprite CSS class to "li" item list.
- */
- spriteCssClass?: string;
-
- /** It receives the table name to execute query on the corresponding table.
- */
- tableName?: string;
-
- /** Specifies the text of TreeView node items list.
- */
- text?: string;
-}
-
-export interface SortSettings {
-
- /** Enables or disables the sorting option in TreeView control
- * @Default {false}
- */
- allowSorting?: boolean;
-
- /** Sets the sorting order type. There are two sorting types available, such as "ascending", "descending".
- * @Default {ej.sortOrder.Ascending}
- */
- sortOrder?: ej.sortOrder|string;
-}
-}
-enum sortOrder {
-//Enum for Ascending sort order
-Ascending,
-//Enum for Descending sort order
-Descending,
-}
-
-class Uploadbox extends ej.Widget {
- static fn: Uploadbox;
- constructor(element: JQuery | Element, options?: Uploadbox.Model);
- static Locale: any;
- model: Uploadbox.Model;
- defaults: Uploadbox.Model;
-
- /** The destroy method destroys the control and brings the control to a pre-init state. All the events of the Upload control is bound by using this._on unbinds automatically.
- * @returns {void}
- */
- destroy(): void;
-
- /** Disables the Uploadbox control
- * @returns {void}
- */
- disable(): void;
-
- /** Enables the Uploadbox control
- * @returns {void}
- */
- enable(): void;
-
- /** Refresh the Uploadbox control
- * @returns {void}
- */
- refresh(): void;
-}
-export namespace Uploadbox {
-
-export interface Model {
-
- /** Enables the file drag and drop support to the Uploadbox control.
- * @Default {false}
- */
- allowDragAndDrop?: boolean;
-
- /** Uploadbox supports both synchronous and asynchronous upload. This can be achieved by using the asyncUpload property.
- * @Default {true}
- */
- asyncUpload?: boolean;
-
- /** Uploadbox supports auto uploading of files after the file selection is done.
- * @Default {false}
- */
- autoUpload?: boolean;
-
- /** Sets the text for each action button.
- * @Default {{browse: Browse, upload: Upload, cancel: Cancel, close: Close}}
- */
- buttonText?: ButtonText;
-
- /** Sets the root class for the Uploadbox control theme. This cssClass API helps to use custom skinning option for the Uploadbox button and dialog content.
- */
- cssClass?: string;
-
- /** Specifies the custom file details in the dialog popup on initialization.
- * @Default {{ title:true, name:true, size:true, status:true, action:true}}
- */
- customFileDetails?: CustomFileDetails;
-
- /** Specifies the actions for dialog popup while initialization.
- * @Default {{ modal:false, closeOnComplete:false, content:null, drag:true}}
- */
- dialogAction?: DialogAction;
-
- /** Displays the Uploadbox dialog at the given X and Y positions. X: Dialog sets the left position value. Y: Dialog sets the top position value.
- * @Default {null}
- */
- dialogPosition?: any;
-
- /** Property for applying the text to the Dialog title and content headers.
- * @Default {{ title: Upload Box, name: Name, size: Size, status: Status}}
- */
- dialogText?: DialogText;
-
- /** The dropAreaText is displayed when the drag and drop support is enabled in the Uploadbox control.
- * @Default {Drop files or click to upload}
- */
- dropAreaText?: string;
-
- /** Specifies the dropAreaHeight when the drag and drop support is enabled in the Uploadbox control.
- * @Default {100%}
- */
- dropAreaHeight?: number|string;
-
- /** Specifies the dropAreaWidth when the drag and drop support is enabled in the Uploadbox control.
- * @Default {100%}
- */
- dropAreaWidth?: number|string;
-
- /** Based on the property value, Uploadbox is enabled or disabled.
- * @Default {true}
- */
- enabled?: boolean;
-
- /** Sets the right-to-left direction property for the Uploadbox control.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** Only the files with the specified extension is allowed to upload. This is mentioned in the string format.
- */
- extensionsAllow?: string;
-
- /** Only the files with the specified extension is denied for upload. This is mentioned in the string format.
- */
- extensionsDeny?: string;
-
- /** Sets the maximum size limit for uploading the file. This is mentioned in the number format.
- * @Default {31457280}
- */
- fileSize?: number;
-
- /** Sets the height of the browse button.
- * @Default {35px}
- */
- height?: string;
-
- /** Specifies the list of HTML attributes to be added to uploadbox control.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Configures the culture data and sets the culture to the Uploadbox.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Enables multiple file selection for upload.
- * @Default {true}
- */
- multipleFilesSelection?: boolean;
-
- /** You can push the file to the Uploadbox in the client-side of the XHR supported browsers alone.
- * @Default {null}
- */
- pushFile?: any;
-
- /** Specifies the remove action to be performed after the file uploading is completed. Here, mention the server address for removal.
- */
- removeUrl?: string;
-
- /** Specifies the save action to be performed after the file is pushed for uploading. Here, mention the server address to be saved.
- */
- saveUrl?: string;
-
- /** Enables the browse button support to the Uploadbox control.
- * @Default {true}
- */
- showBrowseButton?: boolean;
-
- /** Specifies the file details to be displayed when selected for uploading. This can be done when the showFileDetails is set to true.
- * @Default {true}
- */
- showFileDetails?: boolean;
-
- /** Specifies the file details to be displayed when selected for uploading. This can be done when the showFileDetails is set to true.
- * @Default {true}
- */
- showRoundedCorner?: boolean;
-
- /** Sets the name for the Uploadbox control. This API helps to Map the action in code behind to retrieve the files.
- */
- uploadName?: string;
+ /** it returns currently unchecked node and its child node details.
+ */
+ currentUncheckedNodes?: any[];
+ }
- /** Sets the width of the browse button.
- * @Default {100px}
- */
- width?: string;
+ export interface NodeUnselectEventArgs {
- /** Fires when the upload progress beforeSend. */
- beforeSend?(e: BeforeSendEventArgs): void;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** Fires when the upload progress begins. */
- begin?(e: BeginEventArgs): void;
+ /** returns the current element of the node unselected
+ */
+ currentElement?: any;
- /** Fires when the upload progress is cancelled. */
- cancel?(e: CancelEventArgs): void;
+ /** returns the id of the current element of the node unselected
+ */
+ id?: string;
- /** Fires when the file upload progress is completed. */
- complete?(e: CompleteEventArgs): void;
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
- /** Fires when the file upload progress is succeeded. */
- success?(e: SuccessEventArgs): void;
+ /** returns the id of the parent element of current element of the node unselected
+ */
+ parentId?: string;
- /** Fires when the Uploadbox control is created. */
- create?(e: CreateEventArgs): void;
+ /** returns the current selected nodes index of TreeView
+ */
+ selectedNodes?: any[];
- /** Fires when the Uploadbox control is destroyed. */
- destroy?(e: DestroyEventArgs): void;
+ /** returns the name of the event
+ */
+ type?: string;
- /** Fires when the Upload process ends in Error. */
- error?(e: ErrorEventArgs): void;
+ /** returns the value of the node
+ */
+ value?: string;
+ }
+
+ export interface ReadyEventArgs {
+
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
+
+ /** returns the TreeView model
+ */
+ model?: ej.TreeView.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface Fields {
+
+ /** It receives the child level or inner level data source such as Essential DataManager object and JSON object.
+ */
+ child?: any;
+
+ /** It receives Essential DataManager object and JSON object.
+ */
+ dataSource?: any;
+
+ /** Specifies the node to be in expanded state.
+ */
+ expanded?: string;
+
+ /** Its allow us to indicate whether the node has child or not in load on demand
+ */
+ hasChild?: string;
+
+ /** Specifies the HTML Attributes to "li" item list.
+ */
+ htmlAttribute?: any;
+
+ /** Specifies the id to TreeView node items list.
+ */
+ id?: string;
+
+ /** Specifies the image attribute to “img†tag inside items list
+ */
+ imageAttribute?: any;
+
+ /** Specifies the HTML Attributes to "li" item list.
+ */
+ imageUrl?: string;
+
+ /** If its true Checkbox node will be checked when rendered with checkbox.
+ */
+ isChecked?: string;
+
+ /** Specifies the link attribute to “a†tag in item list.
+ */
+ linkAttribute?: any;
+
+ /** Specifies the parent id of the node. The nodes are listed as child nodes of the specified parent node by using its parent id.
+ */
+ parentId?: string;
+
+ /** It receives query to retrieve data from the table (query is same as SQL).
+ */
+ query?: any;
+
+ /** Allow us to specify the node to be in selected state
+ */
+ selected?: string;
+
+ /** Specifies the sprite CSS class to "li" item list.
+ */
+ spriteCssClass?: string;
+
+ /** It receives the table name to execute query on the corresponding table.
+ */
+ tableName?: string;
+
+ /** Specifies the text of TreeView node items list.
+ */
+ text?: string;
+ }
+
+ export interface SortSettings {
+
+ /** Enables or disables the sorting option in TreeView control
+ * @Default {false}
+ */
+ allowSorting?: boolean;
+
+ /** Sets the sorting order type. There are two sorting types available, such as "ascending", "descending".
+ * @Default {ej.sortOrder.Ascending}
+ */
+ sortOrder?: ej.sortOrder | string;
+ }
+ }
+ enum sortOrder {
+ //Enum for Ascending sort order
+ Ascending,
+ //Enum for Descending sort order
+ Descending,
+ }
+
+ class Uploadbox extends ej.Widget {
+ static fn: Uploadbox;
+ constructor(element: JQuery | Element, options?: Uploadbox.Model);
+ static Locale: any;
+ model: Uploadbox.Model;
+ defaults: Uploadbox.Model;
+
+ /** The destroy method destroys the control and brings the control to a pre-init state. All the events of the Upload control is bound by using this._on unbinds automatically.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** Disables the Uploadbox control
+ * @returns {void}
+ */
+ disable(): void;
+
+ /** Enables the Uploadbox control
+ * @returns {void}
+ */
+ enable(): void;
+
+ /** Refresh the Uploadbox control
+ * @returns {void}
+ */
+ refresh(): void;
+ }
+ export namespace Uploadbox {
+
+ export interface Model {
+
+ /** Enables the file drag and drop support to the Uploadbox control.
+ * @Default {false}
+ */
+ allowDragAndDrop?: boolean;
+
+ /** Uploadbox supports both synchronous and asynchronous upload. This can be achieved by using the asyncUpload property.
+ * @Default {true}
+ */
+ asyncUpload?: boolean;
+
+ /** Uploadbox supports auto uploading of files after the file selection is done.
+ * @Default {false}
+ */
+ autoUpload?: boolean;
+
+ /** Sets the text for each action button.
+ * @Default {{browse: Browse, upload: Upload, cancel: Cancel, close: Close}}
+ */
+ buttonText?: ButtonText;
+
+ /** Sets the root class for the Uploadbox control theme. This cssClass API helps to use custom skinning option for the Uploadbox button and dialog content.
+ */
+ cssClass?: string;
+
+ /** Specifies the custom file details in the dialog popup on initialization.
+ * @Default {{ title:true, name:true, size:true, status:true, action:true}}
+ */
+ customFileDetails?: CustomFileDetails;
+
+ /** Specifies the actions for dialog popup while initialization.
+ * @Default {{ modal:false, closeOnComplete:false, content:null, drag:true}}
+ */
+ dialogAction?: DialogAction;
+
+ /** Displays the Uploadbox dialog at the given X and Y positions. X: Dialog sets the left position value. Y: Dialog sets the top position value.
+ * @Default {null}
+ */
+ dialogPosition?: any;
+
+ /** Property for applying the text to the Dialog title and content headers.
+ * @Default {{ title: Upload Box, name: Name, size: Size, status: Status}}
+ */
+ dialogText?: DialogText;
+
+ /** The dropAreaText is displayed when the drag and drop support is enabled in the Uploadbox control.
+ * @Default {Drop files or click to upload}
+ */
+ dropAreaText?: string;
+
+ /** Specifies the dropAreaHeight when the drag and drop support is enabled in the Uploadbox control.
+ * @Default {100%}
+ */
+ dropAreaHeight?: number | string;
+
+ /** Specifies the dropAreaWidth when the drag and drop support is enabled in the Uploadbox control.
+ * @Default {100%}
+ */
+ dropAreaWidth?: number | string;
+
+ /** Based on the property value, Uploadbox is enabled or disabled.
+ * @Default {true}
+ */
+ enabled?: boolean;
+
+ /** Sets the right-to-left direction property for the Uploadbox control.
+ * @Default {false}
+ */
+ enableRTL?: boolean;
+
+ /** Only the files with the specified extension is allowed to upload. This is mentioned in the string format.
+ */
+ extensionsAllow?: string;
+
+ /** Only the files with the specified extension is denied for upload. This is mentioned in the string format.
+ */
+ extensionsDeny?: string;
+
+ /** Sets the maximum size limit for uploading the file. This is mentioned in the number format.
+ * @Default {31457280}
+ */
+ fileSize?: number;
+
+ /** Sets the height of the browse button.
+ * @Default {35px}
+ */
+ height?: string;
+
+ /** Specifies the list of HTML attributes to be added to uploadbox control.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Configures the culture data and sets the culture to the Uploadbox.
+ * @Default {en-US}
+ */
+ locale?: string;
+
+ /** Enables multiple file selection for upload.
+ * @Default {true}
+ */
+ multipleFilesSelection?: boolean;
+
+ /** You can push the file to the Uploadbox in the client-side of the XHR supported browsers alone.
+ * @Default {null}
+ */
+ pushFile?: any;
+
+ /** Specifies the remove action to be performed after the file uploading is completed. Here, mention the server address for removal.
+ */
+ removeUrl?: string;
+
+ /** Specifies the save action to be performed after the file is pushed for uploading. Here, mention the server address to be saved.
+ */
+ saveUrl?: string;
+
+ /** Enables the browse button support to the Uploadbox control.
+ * @Default {true}
+ */
+ showBrowseButton?: boolean;
+
+ /** Specifies the file details to be displayed when selected for uploading. This can be done when the showFileDetails is set to true.
+ * @Default {true}
+ */
+ showFileDetails?: boolean;
+
+ /** Specifies the file details to be displayed when selected for uploading. This can be done when the showFileDetails is set to true.
+ * @Default {true}
+ */
+ showRoundedCorner?: boolean;
+
+ /** Sets the name for the Uploadbox control. This API helps to Map the action in code behind to retrieve the files.
+ */
+ uploadName?: string;
- /** Fires when the file is selected for upload successfully. */
- fileSelect?(e: FileSelectEventArgs): void;
+ /** Sets the width of the browse button.
+ * @Default {100px}
+ */
+ width?: string;
- /** Fires when the file is uploading. */
- inProgress?(e: InProgressEventArgs): void;
+ /** Fires when the upload progress beforeSend. */
+ beforeSend?(e: BeforeSendEventArgs): void;
- /** Fires when the uploaded file is removed successfully. */
- remove?(e: RemoveEventArgs): void;
-}
+ /** Fires when the upload progress begins. */
+ begin?(e: BeginEventArgs): void;
-export interface BeforeSendEventArgs {
+ /** Fires when the upload progress is cancelled. */
+ cancel?(e: CancelEventArgs): void;
- /** Selected FileList Object.
- */
- files?: any;
+ /** Fires when the file upload progress is completed. */
+ complete?(e: CompleteEventArgs): void;
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** Fires when the file upload progress is succeeded. */
+ success?(e: SuccessEventArgs): void;
- /** returns the Uploadbox model
- */
- model?: any;
+ /** Fires when the Uploadbox control is created. */
+ create?(e: CreateEventArgs): void;
- /** XHR-AJAX Object for reference.
- */
- xhr?: any;
+ /** Fires when the Uploadbox control is destroyed. */
+ destroy?(e: DestroyEventArgs): void;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** Fires when the Upload process ends in Error. */
+ error?(e: ErrorEventArgs): void;
-export interface BeginEventArgs {
+ /** Fires when the file is selected for upload successfully. */
+ fileSelect?(e: FileSelectEventArgs): void;
- /** To pass additional information to the server.
- */
- data?: any;
+ /** Fires when the file is uploading. */
+ inProgress?(e: InProgressEventArgs): void;
- /** Selected FileList Object.
- */
- files?: any;
+ /** Fires when the uploaded file is removed successfully. */
+ remove?(e: RemoveEventArgs): void;
+ }
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ export interface BeforeSendEventArgs {
- /** returns the Uploadbox model
- */
- model?: any;
+ /** Selected FileList Object.
+ */
+ files?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
-export interface CancelEventArgs {
+ /** returns the Uploadbox model
+ */
+ model?: any;
- /** Canceled FileList Object.
- */
- fileStatus?: any;
+ /** XHR-AJAX Object for reference.
+ */
+ xhr?: any;
- /** returns the Uploadbox model
- */
- model?: any;
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
- /** returns the name of the event.
- */
- type?: string;
-}
+ export interface BeginEventArgs {
-export interface CompleteEventArgs {
+ /** To pass additional information to the server.
+ */
+ data?: any;
- /** AJAX event argument for reference.
- */
- e?: any;
+ /** Selected FileList Object.
+ */
+ files?: any;
- /** Uploaded file list.
- */
- files?: any;
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
- /** response from the server.
- */
- responseText?: string;
+ /** returns the Uploadbox model
+ */
+ model?: any;
- /** XHR-AJAX Object for reference.
- */
- xhr?: any;
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
- /** returns the Uploadbox model
- */
- model?: any;
+ export interface CancelEventArgs {
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** Canceled FileList Object.
+ */
+ fileStatus?: any;
-export interface SuccessEventArgs {
+ /** returns the Uploadbox model
+ */
+ model?: any;
- /** response from the server.
- */
- responseText?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
- /** AJAX event argument for reference.
- */
- e?: any;
+ export interface CompleteEventArgs {
- /** successfully uploaded files list.
- */
- success?: any;
+ /** AJAX event argument for reference.
+ */
+ e?: any;
- /** Uploaded file list.
- */
- files?: any;
+ /** Uploaded file list.
+ */
+ files?: any;
- /** XHR-AJAX Object for reference.
- */
- xhr?: any;
+ /** response from the server.
+ */
+ responseText?: string;
- /** returns the Uploadbox model
- */
- model?: any;
+ /** XHR-AJAX Object for reference.
+ */
+ xhr?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the Uploadbox model
+ */
+ model?: any;
-export interface CreateEventArgs {
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
- /** returns the Uploadbox model
- */
- model?: any;
+ export interface SuccessEventArgs {
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** response from the server.
+ */
+ responseText?: string;
-export interface DestroyEventArgs {
+ /** AJAX event argument for reference.
+ */
+ e?: any;
- /** returns the Uploadbox model
- */
- model?: any;
+ /** successfully uploaded files list.
+ */
+ success?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** Uploaded file list.
+ */
+ files?: any;
-export interface ErrorEventArgs {
+ /** XHR-AJAX Object for reference.
+ */
+ xhr?: any;
- /** details about the error information.
- */
- error?: string;
+ /** returns the Uploadbox model
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
- /** error event action details.
- */
- action?: string;
+ export interface CreateEventArgs {
- /** returns the file details of the file uploaded
- */
- files?: any;
-}
+ /** returns the Uploadbox model
+ */
+ model?: any;
-export interface FileSelectEventArgs {
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
- /** returns Selected FileList objects
- */
- files?: any;
+ export interface DestroyEventArgs {
- /** returns the Uploadbox model
- */
- model?: any;
+ /** returns the Uploadbox model
+ */
+ model?: any;
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface InProgressEventArgs {
+ export interface ErrorEventArgs {
- /** if the event should be canceled; otherwise, false.
- */
- cancel?: boolean;
+ /** details about the error information.
+ */
+ error?: string;
- /** AJAX event argument for reference.
- */
- e?: any;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** returns Selected FileList objects
- */
- files?: any;
+ /** error event action details.
+ */
+ action?: string;
- /** returns the Uploadbox model
- */
- model?: any;
+ /** returns the file details of the file uploaded
+ */
+ files?: any;
+ }
- /** returns the current progress percentage.
- */
- percentage?: any;
+ export interface FileSelectEventArgs {
- /** returns the name of the event.
- */
- type?: string;
-}
+ /** returns Selected FileList objects
+ */
+ files?: any;
-export interface RemoveEventArgs {
+ /** returns the Uploadbox model
+ */
+ model?: any;
- /** returns the Uploadbox model
- */
- model?: any;
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
- /** returns the name of the event.
- */
- type?: string;
+ export interface InProgressEventArgs {
- /** returns the file details of the file object
- */
- fileStatus?: any;
-}
+ /** if the event should be canceled; otherwise, false.
+ */
+ cancel?: boolean;
-export interface ButtonText {
+ /** AJAX event argument for reference.
+ */
+ e?: any;
- /** Sets the text for the browse button.
- */
- browse?: string;
+ /** returns Selected FileList objects
+ */
+ files?: any;
- /** Sets the text for the cancel button.
- */
- cancel?: string;
+ /** returns the Uploadbox model
+ */
+ model?: any;
- /** Sets the text for the close button.
- */
- Close?: string;
+ /** returns the current progress percentage.
+ */
+ percentage?: any;
- /** Sets the text for the Upload button inside the dialog popup.
- */
- upload?: string;
-}
+ /** returns the name of the event.
+ */
+ type?: string;
+ }
-export interface CustomFileDetails {
-
- /** Enables the file upload interactions like remove/cancel in File details of the dialog popup.
- */
- action?: boolean;
-
- /** Enables the name in the File details of the dialog popup.
- */
- name?: boolean;
-
- /** Enables or disables the File size details of the dialog popup.
- */
- size?: boolean;
-
- /** Enables or disables the file uploading status visibility in the dialog file details content.
- */
- status?: boolean;
-
- /** Enables the title in File details for the dialog popup.
- */
- title?: boolean;
-}
-
-export interface DialogAction {
-
- /** Once uploaded successfully, the dialog popup closes immediately.
- */
- closeOnComplete?: boolean;
-
- /** Sets the content container option to the Uploadbox dialog popup.
- */
- content?: string;
-
- /** Enables the drag option to the dialog popup.
- */
- drag?: boolean;
-
- /** Enables or disables the Uploadbox dialog’s modal property to the dialog popup.
- */
- modal?: boolean;
-}
-
-export interface DialogText {
-
- /** Sets the uploaded file’s Name (header text) to the Dialog popup.
- */
- name?: string;
-
- /** Sets the upload file Size (header text) to the dialog popup.
- */
- size?: string;
-
- /** Sets the upload file Status (header text) to the dialog popup.
- */
- status?: string;
-
- /** Sets the title text of the dialog popup.
- */
- title?: string;
-}
-}
-
-class WaitingPopup extends ej.Widget {
- static fn: WaitingPopup;
- constructor(element: JQuery | Element, options?: WaitingPopup.Model);
- static Locale: any;
- model: WaitingPopup.Model;
- defaults: WaitingPopup.Model;
-
- /** To hide the waiting popup
- * @returns {void}
- */
- hide(): void;
-
- /** Refreshes the WaitingPopup control by resetting the pop-up panel position and content position
- * @returns {void}
- */
- refresh(): void;
-
- /** To show the waiting popup
- * @returns {void}
- */
- show(): void;
-}
-export namespace WaitingPopup {
-
-export interface Model {
-
- /** Sets the root class for the WaitingPopup control theme
- * @Default {null}
- */
- cssClass?: string;
-
- /** Specifies the list of HTML attributes to be added to waitingpopup control.
- * @Default {{}}
- */
- htmlAttributes?: any;
-
- /** Enables or disables the default loading icon.
- * @Default {true}
- */
- showImage?: boolean;
-
- /** Enables the visibility of the WaitingPopup control
- * @Default {false}
- */
- showOnInit?: boolean;
-
- /** Specified a selector for elements, within the container.
- * @Default {null}
- */
- target?: string;
-
- /** Waitingpopup element append to given container element.
- * @Default {null}
- */
- appendTo?: string;
-
- /** Loads HTML content inside the popup panel instead of the default icon
- * @Default {null}
- */
- template?: any;
-
- /** Sets the custom text in the pop-up panel to notify the waiting process
- * @Default {null}
- */
- text?: string;
-
- /** Fires after Create WaitingPopup successfully */
- create?(e: CreateEventArgs): void;
-
- /** Fires after Destroy WaitingPopup successfully */
- destroy?(e: DestroyEventArgs): void;
-}
-
-export interface CreateEventArgs {
-
- /** returns the cancel option value
- */
- cancel?: boolean;
-
- /** returns the WaitingPopup model
- */
- model?: ej.WaitingPopup.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-
-export interface DestroyEventArgs {
-
- /** returns the cancel option value
- */
- cancel?: boolean;
-
- /** returns the WaitingPopup model
- */
- model?: ej.WaitingPopup.Model;
-
- /** returns the name of the event
- */
- type?: string;
-}
-}
-
-class Grid extends ej.Widget {
- static fn: Grid;
- constructor(element: JQuery | Element, options?: Grid.Model);
- static Locale: any;
- model: Grid.Model;
- defaults: Grid.Model;
-
- /** Adds a grid model property which is to be ignored upon exporting.
- * @param {Array} Pass the array of parameters which need to be ignored on exporting
- * @returns {void}
- */
- addIgnoreOnExport(propertyNames: any[]): void;
-
- /** Add a new record in grid control when allowAdding is set as true.
- * @returns {void}
- */
- //addRecord(): void;
-
- /** Add a new record in grid control when allowAdding is set as true.
- * @param {Array} Pass the array of added Records
- * @param {Array} optionalIf we pass serverChange as true, send post to server side for server action.
- * @returns {void}
- */
- addRecord(data: any[], serverChange?: any[]): void;
-
- /** Cancel the modified changes in grid control when edit mode is "batch".
- * @returns {void}
- */
- batchCancel(): void;
-
- /** Save the modified changes to data source in grid control when edit mode is "batch".
- * @returns {void}
- */
- batchSave(): void;
-
- /** Send a cancel request in grid.
- * @returns {void}
- */
- cancelEdit(): void;
-
- /** Send a cancel request to the edited cell in grid.
- * @returns {void}
- */
- cancelEditCell(): void;
-
- /** It is used to clear all the cell selection.
- * @returns {Boolean}
- */
- clearCellSelection(): boolean;
-
- /** It is used to clear specified cell selection based on the rowIndex and columnIndex provided.
- * @param {number} It is used to pass the row index of the cell
- * @param {number} It is used to pass the column index of the cell.
- * @returns {Boolean}
- */
- clearCellSelection(rowIndex: number, columnIndex: number): boolean;
-
- /** It is used to clear all the row selection or at specific row selection based on the index provided.
- * @param {number} optional If index of the column is specified then it will remove the selection from the particular column else it will clears all of the column selection
- * @returns {Boolean}
- */
- clearColumnSelection(index?: number): boolean;
-
- /** It is used to clear all the filtering done.
- * @param {string} If field of the column is specified then it will clear the particular filtering column
- * @returns {void}
- */
- clearFiltering(field: string): void;
-
- /** Clear the searching from the grid
- * @returns {void}
- */
- clearSearching(): void;
-
- /** Clear all the row selection or at specific row selection based on the index provided
- * @param {number} optional If index of the row is specified then it will remove the selection from the particular row else it will clears all of the row selection
- * @returns {Boolean}
- */
- clearSelection(index?: number): boolean;
-
- /** Clear the sorting from columns in the grid
- * @returns {void}
- */
- clearSorting(): void;
-
- /** Collapse all the group caption rows in grid
- * @returns {void}
- */
- collapseAll(): void;
-
- /** Collapse the group drop area in grid
- * @returns {void}
- */
- collapseGroupDropArea(): void;
-
- /** Add or remove columns in grid column collections
- * @param {Array|string} Pass array of columns or string of field name to add/remove the column in grid
- * @param {string} optional Pass add/remove action to be performed. By default "add" action will perform
- * @returns {void}
- */
- columns(columnDetails: any[]|string, action?: string): void;
-
- /** Refresh the grid with new data source
- * @param {Array} Pass new data source to the grid
- * @param {boolean} optional When templateRefresh is set true, both header and contents get refreshed
- * @returns {void}
- */
- dataSource(datasource: any[], templateRefresh?: boolean): void;
-
- /** Delete a record in grid control when allowDeleting is set as true
- * @param {string} Pass the primary key field Name of the column
- * @param {Array} Pass the JSON data of record need to be delete.
- * @returns {void}
- */
- deleteRecord(fieldName: string, data: any[]): void;
-
- /** Delete the row based on the given tr element in grid.
- * @param {JQuery} Pass the tr element in grid content to get its row index
- * @returns {HTMLElement}
- */
- deleteRow($tr: JQuery): HTMLElement;
-
- /** Destroy the grid widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
- * @returns {void}
- */
- destroy(): void;
-
- /** Edit a particular cell based on the row index and field name provided in "batch" edit mode.
- * @param {number} Pass row index to edit particular cell
- * @param {string} Pass the field name of the column to perform batch edit
- * @returns {void}
- */
- editCell(index: number, fieldName: string): void;
-
- /** It returns a value and if the input field values of edit form is not based on the validation rules then it will show the validation message.
- * @returns {Boolean}
- */
- editFormValidate(): boolean;
-
- /** Send a save request in grid.
- * @returns {void}
- */
- endEdit(): void;
-
- /** Expand all the group caption rows in grid.
- * @returns {void}
- */
- expandAll(): void;
-
- /** Expand or collapse the row based on the row state in grid
- * @param {JQuery} Pass the target object to expand/collapse the row based on its row state
- * @returns {void}
- */
- expandCollapse($target: JQuery): void;
-
- /** Expand the group drop area in grid.
- * @returns {void}
- */
- expandGroupDropArea(): void;
-
- /** Export the grid content to excel, word or PDF document.
- * @param {string} Pass the controller action name corresponding to exporting
- * @param {string} optionalASP server event name corresponding to exporting
- * @param {boolean} optionalPass the multiple exporting value as true/false
- * @param {Array} optionalPass the array of the gridIds to be filtered
- * @returns {void}
- */
- export(action: string, serverEvent?: string, multipleExport?: boolean, gridIds?: any[]): void;
-
- /** Send a filtering request to filter one column in grid.
- * @param {Array} Pass the field name of the column
- * @param {string} string/integer/dateTime operator
- * @param {string} Pass the value to be filtered in a column
- * @param {string} Pass the predicate as and/or
- * @param {boolean} optional Pass the match case value as true/false
- * @param {any} optionalactualFilterValue denote the filter object of current filtered columns.Pass the value to filtered in a column
- * @returns {void}
- */
- filterColumn(fieldName: any[], filterOperator: string, filterValue: string, predicate: string, matchcase?: boolean, actualFilterValue?: any): void;
-
- /** Send a filtering request to filter single or multiple column in grid.
- * @param {Array} Pass array of filterColumn query for performing filter operation
- * @returns {void}
- */
- filterColumn(filterQueries: any[]): void;
-
- /** Get the batch changes of edit, delete and add operations of grid.
- * @returns {any}
- */
- getBatchChanges(): any;
-
- /** Get the browser details
- * @returns {any}
- */
- getBrowserDetails(): any;
-
- /** Get the column details based on the given field in grid
- * @param {string} Pass the field name of the column to get the corresponding column object
- * @returns {any}
- */
- getColumnByField(fieldName: string): any;
-
- /** Get the column details based on the given header text in grid.
- * @param {string} Pass the header text of the column to get the corresponding column object
- * @returns {any}
- */
- getColumnByHeaderText(headerText: string): any;
-
- /** Get the column details based on the given column index in grid
- * @param {number} Pass the index of the column to get the corresponding column object
- * @returns {any}
- */
- getColumnByIndex(columnIndex: number): any;
-
- /** Get the list of field names from column collection in grid.
- * @returns {Array}
- */
- getColumnFieldNames(): any[];
-
- /** Get the column index of the given field in grid.
- * @param {string} Pass the field name of the column to get the corresponding column index
- * @returns {number}
- */
- getColumnIndexByField(fieldName: string): number;
-
- /** Get the column index of the given headerText of column in grid.
- * @param {string} Pass the headerText of the column to get that column index
- * @param {string} optionalOptional Pass the field name of the column.
- * @returns {number}
- */
- getColumnIndexByHeaderText(headerText: string, field?: string): number;
-
- /** Get the content div element of grid.
- * @returns {HTMLElement}
- */
- getContent(): HTMLElement;
-
- /** Get the content table element of grid
- * @returns {Array}
- */
- getContentTable(): HTMLTableElement[];
-
- /** Get the data of currently edited cell value in "batch" edit mode
- * @returns {any}
- */
- getCurrentEditCellData(): any;
-
- /** Get the current page index in grid pager.
- * @returns {number}
- */
- getCurrentIndex(): number;
-
- /** Get the current page data source of grid.
- * @returns {Array}
- */
- getCurrentViewData(): any[];
-
- /** Get the data of given row index in grid.
- * @returns {any}
- */
- getDataByIndex(): any;
-
- /** Get the column field name from the given header text in grid.
- * @param {string} Pass header text of the column to get its corresponding field name
- * @returns {String}
- */
- getFieldNameByHeaderText(headerText: string): string;
-
- /** Get the filter bar of grid
- * @returns {HTMLElement}
- */
- getFilterBar(): HTMLElement;
-
- /** Get the records filtered or searched in Grid
- * @returns {Array}
- */
- getFilteredRecords(): any[];
-
- /** Get the footer content of grid.
- * @returns {HTMLElement}
- */
- getFooterContent(): HTMLElement;
-
- /** Get the footer table element of grid.
- * @returns {HTMLElement}
- */
- getFooterTable(): HTMLElement;
-
- /** Get the header content div element of grid.
- * @returns {HTMLElement}
- */
- getHeaderContent(): HTMLElement;
-
- /** Get the header table element of grid
- * @returns {HTMLElement}
- */
- getHeaderTable(): HTMLElement;
-
- /** Get the column header text from the given field name in grid.
- * @param {string} Pass field name of the column to get its corresponding header text
- * @returns {String}
- */
- getHeaderTextByFieldName(field: string): string;
-
- /** Get the names of all the hidden column collections in grid.
- * @returns {Array}
- */
- getHiddenColumnNames(): any[];
-
- /** Get the row index based on the given tr element in grid.
- * @param {JQuery} Pass the tr element in grid content to get its row index
- * @returns {number}
- */
- getIndexByRow($tr: JQuery): number;
-
- /** Get the pager of grid.
- * @returns {HTMLElement}
- */
- getPager(): HTMLElement;
-
- /** Get the names of primary key columns in Grid
- * @returns {Array}
- */
- getPrimaryKeyFieldNames(): any[];
-
- /** Get the rows(tr element) from the given from and to row index in grid
- * @param {number} Pass the from index from which the rows to be returned
- * @param {number} Pass the to index to which the rows to be returned
- * @returns {HTMLElement}
- */
- getRowByIndex(from: number, to: number): HTMLElement;
-
- /** Get the row height of grid.
- * @returns {number}
- */
- getRowHeight(): number;
-
- /** Get the rows(tr element)of grid which is displayed in the current page.
- * @returns {HTMLElement}
- */
- getRows(): HTMLElement;
-
- /** Get the scroller object of grid.
- * @returns {ej.Scroller}
- */
- getScrollObject(): ej.Scroller;
-
- /** Get the selected records details in grid.
- * @returns {Array}
- */
- getSelectedRecords(): any[];
-
- /** Get the selected row element details in grid.
- * @returns {Array}
- */
- getSelectedRows(): any[];
-
- /** It accepts the string value and returns the field and sorted direction of the column in grid.
- * @param {string} Pass the field of the column to get the sorted direction of the corresponding column in Grid.
- * @returns {number}
- */
- getsortColumnByField(field: string): number;
-
- /** Get the calculated summary values of JSON data passed to it
- * @param {any} Pass Summary Column details
- * @param {any} Pass JSON Array for which its field values to be calculated
- * @returns {Number}
- */
- getSummaryValues(summaryCol: any, summaryData: any): number;
-
- /** Get the names of all the visible column collections in grid
- * @returns {Array}
- */
- getVisibleColumnNames(): any[];
-
- /** Send a paging request to specified page in grid
- * @param {number} Pass the page index to perform paging at specified page index
- * @returns {void}
- */
- gotoPage(pageIndex: number): void;
-
- /** Send a column grouping request in grid.
- * @param {string} Pass the field Name of the column to be grouped in grid control
- * @returns {void}
- */
- groupColumn(fieldName: string): void;
-
- /** Hide columns from the grid based on the header text
- * @param {Array|string} you can pass either array of header text of various columns or a header text of a column to hide
- * @returns {void}
- */
- hideColumns(headerText: any[]|string): void;
-
- /** Print the grid control
- * @returns {void}
- */
- print(): void;
-
- /** It is used to refresh and reset the changes made in "batch" edit mode
- * @returns {void}
- */
- refreshBatchEditChanges(): void;
-
- /** It is used to refresh the grid header.
- * @returns {void}
- */
- refreshHeader(): void;
-
- /** Refresh the grid contents. The template refreshment is based on the argument passed along with this method
- * @param {boolean} optional When templateRefresh is set true, template and grid contents both are refreshed in grid else only grid content is refreshed
- * @returns {void}
- */
- refreshContent(templateRefresh?: boolean): void;
-
- /** Refresh the template of the grid
- * @returns {void}
- */
- refreshTemplate(): void;
-
- /** Refresh the toolbar items in grid.
- * @returns {void}
- */
- refreshToolbar(): void;
-
- /** Remove a column or collection of columns from a sorted column collections in grid.
- * @param {Array|string} Pass array of field names of the columns to remove a collection of sorted columns or pass a string of field name to remove a column from sorted column collections
- * @returns {void}
- */
- removeSortedColumns(fieldName: any[]|string): void;
-
- /** Creates a grid control
- * @returns {void}
- */
- render(): void;
-
- /** Re-order the column in grid
- * @param {string} Pass the from field name of the column needs to be changed
- * @param {string} Pass the to field name of the column needs to be changed
- * @returns {void}
- */
- reorderColumns(fromFieldName: string, toFieldName: string): void;
-
- /** Re-order the row in grid
- * @param {Array} Pass the indexes of the rows needs to reorder.
- * @param {number} Pass the index of a row where to be reorderd.
- * @returns {void}
- */
- reorderRows(indexes: any[], toindex: number): void;
-
- /** Reset the model collections like pageSettings, groupSettings, filterSettings, sortSettings and summaryRows.
- * @returns {void}
- */
- resetModelCollections(): void;
-
- /** Resize the columns by giving column name and width for the corresponding one.
- * @param {string} Pass the column name that needs to be changed
- * @param {string} Pass the width to resize the particular columns
- * @returns {void}
- */
- resizeColumns(column: string, width: string): void;
-
- /** Resolves row height issue when unbound column is used with FrozenColumn
- * @returns {void}
- */
- rowHeightRefresh(): void;
-
- /** Save the particular edited cell in grid.
- * @returns {void}
- */
- //saveCell(): void;
-
- /** We can prevent the client side cellSave event triggering by passing the preventSaveEvent argument as true.
- * @param {boolean} optionalIf we pass preventSaveEvent as true, it prevents the client side cellSave event triggering
- * @returns {void}
- */
- saveCell(preventSaveEvent: boolean): void;
-
- /** Set dimension for grid with corresponding to grid parent.
- * @param {number} Pass the height of the grid container
- * @param {number} Pass the width of the grid container
- * @returns {void}
- */
- setDimension(height: number, width: number): void;
-
- /** Send a request to grid to refresh the width set to columns
- * @returns {void}
- */
- setWidthToColumns(): void;
-
- /** Send a search request to grid with specified string passed in it
- * @param {string} Pass the string to search in Grid records
- * @returns {void}
- */
- search(searchString: string): void;
-
- /** Select cells in grid.
- * @param {any} It is used to set the starting index of row and indexes of cells for that corresponding row for selecting cells.
- * @returns {void}
- */
- selectCells(rowCellIndexes: any): void;
-
- /** Select columns in grid.
- * @param {number} It is used to set the starting index of column for selecting columns.
- * @returns {void}
- */
- selectColumns(fromIndex: number): void;
-
- /** Select the specified columns in grid based on Index provided.
- * @param {number} It is used to set the starting index of column for selecting columns.
- * @param {number} optionalIt is used to set the ending index of column for selecting columns.
- * @returns {Boolean}
- */
- selectColumns(columnIndex: number, toIndex?: number): boolean;
-
- /** Select rows in grid.
- * @param {number} It is used to set the starting index of row for selecting rows.
- * @param {number} It is used to set the ending index of row for selecting rows.
- * @returns {void}
- */
- selectRows(fromIndex: number, toIndex: number): void;
-
- /** Select specified rows in grid based on Index provided.
- * @param {Array|number} It is used to set the starting index of row for selecting rows.
- * @param {number} optionalIt is used to set the ending index of row for selecting rows.
- * @param {any} optionalTarget element which is clicked.
- * @returns {void}
- */
- selectRows(from: any[]|number, to: number, target?: any): void;
-
- /** Select rows in grid.
- * @param {Array} Pass array of rowIndexes for selecting rows
- * @returns {void}
- */
- selectRows(rowIndexes: any[]): void;
-
- /** Used to update a particular cell value.
- * @returns {void}
- */
- setCellText(): void;
-
- /** Used to update a particular cell value based on specified row Index and the fieldName.
- * @param {number} It is used to set the index for selecting the row.
- * @param {string} It is used to set the field name for selecting column.
- * @param {any} It is used to set the value for the selected cell.
- * @returns {void}
- */
- setCellValue(Index: number, fieldName: string, value: any): void;
-
- /** It sets the default data to the column in grid during adding record in batch edit mode.
- * @returns {void}
- */
- setDefaultData(): void;
-
- /** The grid rows has to be rendered as detail view in mobile mode based on given value.
- * @param {number} It is used to render grid rows as details view in mobile mode.
- * @returns {void}
- */
- setPhoneModeMaxWidth(Index: number): void;
-
- /** Set validation to a field during editing.
- * @param {string} Specify the field name of the column to set validation rules
- * @param {any} Specify the validation rules for the field
- * @returns {void}
- */
- setValidationToField(fieldName: string, rules: any): void;
-
- /** Show columns in the grid based on the header text
- * @param {Array|string} you can pass either array of header text of various columns or a header text of a column to show
- * @returns {void}
- */
- showColumns(headerText: any[]|string): void;
-
- /** Send a sorting request in grid.
- * @param {string} Pass the field name of the column as columnName for which sorting have to be performed
- * @param {string} optional Pass the sort direction ascending/descending by which the column have to be sort. By default it is sorting in an ascending order
- * @returns {void}
- */
- sortColumn(columnName: string, sortingDirection?: string): void;
-
- /** Send an edit record request in grid
- * @param {JQuery} Pass the tr- selected row element to be edited in grid
- * @returns {void}
- */
- startEdit($tr: JQuery): void;
-
- /** Un-group a column from grouped columns collection in grid
- * @param {string} Pass the field Name of the column to be ungrouped from grouped column collection
- * @returns {void}
- */
- ungroupColumn(fieldName: string): void;
-
- /** Update a edited record in grid control when allowEditing is set as true.
- * @param {string} Pass the primary key field Name of the column
- * @param {Array} Pass the edited JSON data of record need to be update.
- * @returns {void}
- */
- updateRecord(fieldName: string, data: any[]): void;
-
- /** It adapts grid to its parent element or to the browsers window.
- * @returns {void}
- */
- windowonresize(): void;
-}
-export namespace Grid {
-
-export interface Model {
-
- /** Gets or sets a value that indicates whether to customizing cell based on our needs.
- * @Default {false}
- */
- allowCellMerging?: boolean;
-
- /** Gets or sets a value that indicates whether to enable dynamic grouping behavior. Grouping can be done by drag on drop desired columns to grid’s GroupDropArea.
- * This can be further customized through “groupSettings” property.
- * @Default {false}
- */
- allowGrouping?: boolean;
-
- /** Gets or sets a value that indicates whether to enable keyboard support for performing grid actions. selectionType – Gets or sets a value that indicates whether to enable single
- * row or multiple rows selection behavior in grid. Multiple selection can be done through by holding CTRL and clicking the grid rows
- * @Default {true}
- */
- allowKeyboardNavigation?: boolean;
-
- /** Gets or sets a value that indicates whether to enable dynamic filtering behavior on grid. Filtering can be used to limit the records displayed using required criteria and
- * this can be further customized through “filterSettings” property
- * @Default {false}
- */
- allowFiltering?: boolean;
-
- /** Gets or sets a value that indicates whether to enable the dynamic sorting behavior on grid data. Sorting can be done through clicking on particular column header.
- * @Default {false}
- */
- allowSorting?: boolean;
-
- /** Gets or sets a value that indicates whether to enable multi columns sorting behavior in grid. Sort multiple columns by holding CTRL and click on the corresponding column header.
- * @Default {false}
- */
- allowMultiSorting?: boolean;
-
- /** This specifies the grid to show the paginated data. Also enables pager control at the bottom of grid for dynamic navigation through data source.
- * Paging can be further customized through “pageSettings” property.
- * @Default {false}
- */
- allowPaging?: boolean;
-
- /** Gets or sets a value that indicates whether to enable the columns reordering behavior in the grid. Reordering can be done through by drag and drop the particular column
- * from one index to another index within the grid.
- * @Default {false}
- */
- allowReordering?: boolean;
-
- /** Gets or sets a value that indicates whether the column is non resizable. Column width is set automatically based on the content or header text which is large.
- * @Default {false}
- */
- allowResizeToFit?: boolean;
-
- /** Gets or sets a value that indicates whether to enable dynamic resizable of columns. Resize the width of the columns by simply click and move the particular column header line
- * @Default {false}
- */
- allowResizing?: boolean;
-
- /** Gets or sets a value that indicates whether to enable the rows reordering in Grid and drag & drop rows between multiple Grid.
- * @Default {false}
- */
- allowRowDragAndDrop?: boolean;
-
- /** Gets or sets a value that indicates whether to enable the scrollbar in the grid and view the records by scroll through the grid manually
- * @Default {false}
- */
- allowScrolling?: boolean;
-
- /** Gets or sets a value that indicates whether to enable dynamic searching behavior in grid. Currently search box can be enabled through “toolbarSettings”
- * @Default {false}
- */
- allowSearching?: boolean;
-
- /** Gets or sets a value that indicates whether user can select rows on grid. On enabling feature, selected row will be highlighted.
- * @Default {true}
- */
- allowSelection?: boolean;
-
- /** Gets or sets a value that indicates whether the Content will wrap to the next line if the content exceeds the boundary of the Column Cells.
- * @Default {false}
- */
- allowTextWrap?: boolean;
-
- /** Gets or sets a value that indicates whether to enable the multiple exporting behavior on grid data.
- * @Default {false}
- */
- allowMultipleExporting?: boolean;
-
- /** Gets or sets a value that indicates to define common width for all the columns in the grid.
- */
- commonWidth?: number;
-
- /** Gets or sets a value that indicates to enable the visibility of the grid lines.
- * @Default {ej.Grid.GridLines.Both}
- */
- gridLines?: ej.Grid.GridLines|string;
-
- /** This specifies the grid to add the grid control inside the grid row of the parent with expand/collapse options
- * @Default {null}
- */
- childGrid?: any;
-
- /** Used to enable or disable static width settings for column. If the columnLayout is set as fixed, then column width will be static.
- * @Default {ej.Grid.ColumnLayout.Auto}
- */
- columnLayout?: ej.Grid.ColumnLayout|string;
-
- /** Gets or sets an object that indicates to render the grid with specified columns
- * @Default {[]}
- */
- columns?: Column[];
-
- /** Gets or sets an object that indicates whether to customize the context menu behavior of the grid.
- */
- contextMenuSettings?: ContextMenuSettings;
-
- /** Gets or sets a value that indicates to render the grid with custom theme.
- */
- cssClass?: string;
-
- /** Gets or sets the data to render the grid with records
- * @Default {null}
- */
- dataSource?: any;
-
- /** Default Value:
- * @Default {null}
- */
- detailsTemplate?: string;
-
- /** Gets or sets an object that indicates whether to customize the editing behavior of the grid.
- */
- editSettings?: EditSettings;
-
- /** Gets or sets a value that indicates whether to enable the alternative rows differentiation in the grid records based on corresponding theme.
- * @Default {true}
- */
- enableAltRow?: boolean;
-
- /** Gets or sets a value that indicates whether to enable the save action in the grid through row selection
- * @Default {true}
- */
- enableAutoSaveOnSelectionChange?: boolean;
-
- /** Gets or sets a value that indicates whether to enable mouse over effect on the corresponding column header cell of the grid
- * @Default {false}
- */
- enableHeaderHover?: boolean;
-
- /** Gets or sets a value that indicates whether to persist the grid model state in page using applicable medium i.e., HTML5 localStorage or cookies
- * @Default {false}
- */
- enablePersistence?: boolean;
-
- /** Gets or sets a value that indicates whether the grid rows has to be rendered as detail view in mobile mode
- * @Default {false}
- */
- enableResponsiveRow?: boolean;
-
- /** Gets or sets a value that indicates whether to enable mouse over effect on corresponding grid row.
- * @Default {true}
- */
- enableRowHover?: boolean;
-
- /** Align content in the grid control from right to left by setting the property as true.
- * @Default {false}
- */
- enableRTL?: boolean;
-
- /** To Disable the mouse swipe property as false.
- * @Default {true}
- */
- enableTouch?: boolean;
-
- /** It sets a value that indicates whether to enable toolbar items, when allowEditing, allowAdding and allowDeleting property set as false in the grid.
- * @Default {false}
- */
- enableToolbarItems?: boolean;
-
- /** Act as mapper for the excel exporting URL.
- * @Default {ExportToExcel}
- */
- exportToExcelAction?: string;
-
- /** Act as mapper for the PDF exporting URL.
- * @Default {ExportToPdf}
- */
- exportToPdfAction?: string;
-
- /** Act as mapper for the Word exporting URL.
- * @Default {ExportToWord}
- */
- exportToWordAction?: string;
-
- /** Gets or sets an object that indicates whether to customize the filtering behavior of the grid
- */
- filterSettings?: FilterSettings;
-
- /** Gets or sets an object that indicates whether to customize the grouping behavior of the grid.
- */
- groupSettings?: GroupSettings;
-
- /** Gets or sets a value that indicates whether the grid design has be to made responsive.
- * @Default {false}
- */
- isResponsive?: boolean;
-
- /** This specifies to change the key in keyboard interaction to grid control
- * @Default {null}
- */
- keySettings?: any;
-
- /** Gets or sets a value that indicates whether to customizing the user interface (UI) as locale-specific in order to display regional data i.e. in a language and
- * culture specific to a particular country or region.
- * @Default {en-US}
- */
- locale?: string;
-
- /** Gets or sets a value that indicates whether to set the minimum width of the responsive grid while isResponsive property is true and enableResponsiveRow property is set as false.
- * @Default {0}
- */
- minWidth?: number;
-
- /** Gets or sets an object that indicates whether to modify the pager default configuration.
- */
- pageSettings?: PageSettings;
-
- /** Query the dataSource from the table for Grid.
- * @Default {null}
- */
- query?: any;
-
- /** Gets or sets an object that indicates whether to modify the resizing behavior.
- */
- resizeSettings?: ResizeSettings;
-
- /** Gets or sets a value that indicates to render the grid with template rows. The template row must be a table row. That table row must have the JavaScript render binding format ({{:columnName}})
- * then the grid data source binds the data to the corresponding table row of the template.
- * @Default {null}
- */
- rowTemplate?: string;
-
- /** Gets or sets an object that indicates whether to customize the drag and drop behavior of the grid rows
- */
- rowDropSettings?: RowDropSettings;
-
- /** Gets or sets an object that indicates whether to customize the searching behavior of the grid
- */
- searchSettings?: SearchSettings;
-
- /** Gets a value that indicates whether the grid model to hold multiple selected records . selectedRecords can be used to displayed hold the single
- * or multiple selected records using “selectedRecords” property
- * @Default {null}
- */
- selectedRecords?: any[];
-
- /** Gets or sets a value that indicates to select the row while initializing the grid
- * @Default {-1}
- */
- selectedRowIndex?: number;
-
- /** Gets or sets a value that indicates the selected rows in grid
- * @Default {[]}
- */
- selectedRowIndices?: any[];
-
- /** This property is used to configure the selection behavior of the grid.
- */
- selectionSettings?: SelectionSettings;
-
- /** The row selection behavior of grid. Accepting types are "single" and "multiple".
- * @Default {ej.Grid.SelectionType.Single}
- */
- selectionType?: ej.Grid.SelectionType|string;
-
- /** Gets or sets an object that indicates whether to customize the scrolling behavior of the grid.
- */
- scrollSettings?: ScrollSettings;
+ export interface RemoveEventArgs {
- /** Default Value:
- * @Default {false}
- */
- showColumnChooser?: boolean;
+ /** returns the Uploadbox model
+ */
+ model?: any;
- /** Gets or sets a value that indicates stacked header should be shown on grid layout when the property “stackedHeaderRows” is set.
- * @Default {false}
- */
- showStackedHeader?: boolean;
+ /** returns the name of the event.
+ */
+ type?: string;
- /** Gets or sets a value that indicates summary rows should be shown on grid layout when the property “summaryRows” is set
- * @Default {false}
- */
- showSummary?: boolean;
+ /** returns the file details of the file object
+ */
+ fileStatus?: any;
+ }
- /** Gets or sets a value that indicates whether to customize the sorting behavior of the grid.
- */
- sortSettings?: SortSettings;
+ export interface ButtonText {
- /** Gets or sets an object that indicates to managing the collection of stacked header rows for the grid.
- * @Default {[]}
- */
- stackedHeaderRows?: StackedHeaderRow[];
+ /** Sets the text for the browse button.
+ */
+ browse?: string;
- /** Gets or sets an object that indicates to managing the collection of summary rows for the grid.
- * @Default {[]}
- */
- summaryRows?: SummaryRow[];
+ /** Sets the text for the cancel button.
+ */
+ cancel?: string;
- /** Gets or sets an object that indicates whether to auto wrap the grid header or content or both
- */
- textWrapSettings?: TextWrapSettings;
+ /** Sets the text for the close button.
+ */
+ Close?: string;
- /** Gets or sets an object that indicates whether to enable the toolbar in the grid and add toolbar items
- */
- toolbarSettings?: ToolbarSettings;
+ /** Sets the text for the Upload button inside the dialog popup.
+ */
+ upload?: string;
+ }
- /** Triggered for every grid action before its starts. */
- actionBegin?(e: ActionBeginEventArgs): void;
+ export interface CustomFileDetails {
+
+ /** Enables the file upload interactions like remove/cancel in File details of the dialog popup.
+ */
+ action?: boolean;
+
+ /** Enables the name in the File details of the dialog popup.
+ */
+ name?: boolean;
+
+ /** Enables or disables the File size details of the dialog popup.
+ */
+ size?: boolean;
+
+ /** Enables or disables the file uploading status visibility in the dialog file details content.
+ */
+ status?: boolean;
+
+ /** Enables the title in File details for the dialog popup.
+ */
+ title?: boolean;
+ }
+
+ export interface DialogAction {
+
+ /** Once uploaded successfully, the dialog popup closes immediately.
+ */
+ closeOnComplete?: boolean;
+
+ /** Sets the content container option to the Uploadbox dialog popup.
+ */
+ content?: string;
+
+ /** Enables the drag option to the dialog popup.
+ */
+ drag?: boolean;
+
+ /** Enables or disables the Uploadbox dialog’s modal property to the dialog popup.
+ */
+ modal?: boolean;
+ }
+
+ export interface DialogText {
+
+ /** Sets the uploaded file’s Name (header text) to the Dialog popup.
+ */
+ name?: string;
+
+ /** Sets the upload file Size (header text) to the dialog popup.
+ */
+ size?: string;
+
+ /** Sets the upload file Status (header text) to the dialog popup.
+ */
+ status?: string;
+
+ /** Sets the title text of the dialog popup.
+ */
+ title?: string;
+ }
+ }
+
+ class WaitingPopup extends ej.Widget {
+ static fn: WaitingPopup;
+ constructor(element: JQuery | Element, options?: WaitingPopup.Model);
+ static Locale: any;
+ model: WaitingPopup.Model;
+ defaults: WaitingPopup.Model;
+
+ /** To hide the waiting popup
+ * @returns {void}
+ */
+ hide(): void;
+
+ /** Refreshes the WaitingPopup control by resetting the pop-up panel position and content position
+ * @returns {void}
+ */
+ refresh(): void;
+
+ /** To show the waiting popup
+ * @returns {void}
+ */
+ show(): void;
+ }
+ export namespace WaitingPopup {
+
+ export interface Model {
+
+ /** Sets the root class for the WaitingPopup control theme
+ * @Default {null}
+ */
+ cssClass?: string;
+
+ /** Specifies the list of HTML attributes to be added to waitingpopup control.
+ * @Default {{}}
+ */
+ htmlAttributes?: any;
+
+ /** Enables or disables the default loading icon.
+ * @Default {true}
+ */
+ showImage?: boolean;
+
+ /** Enables the visibility of the WaitingPopup control
+ * @Default {false}
+ */
+ showOnInit?: boolean;
+
+ /** Specified a selector for elements, within the container.
+ * @Default {null}
+ */
+ target?: string;
+
+ /** Waitingpopup element append to given container element.
+ * @Default {null}
+ */
+ appendTo?: string;
+
+ /** Loads HTML content inside the popup panel instead of the default icon
+ * @Default {null}
+ */
+ template?: any;
+
+ /** Sets the custom text in the pop-up panel to notify the waiting process
+ * @Default {null}
+ */
+ text?: string;
+
+ /** Fires after Create WaitingPopup successfully */
+ create?(e: CreateEventArgs): void;
+
+ /** Fires after Destroy WaitingPopup successfully */
+ destroy?(e: DestroyEventArgs): void;
+ }
+
+ export interface CreateEventArgs {
+
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
+
+ /** returns the WaitingPopup model
+ */
+ model?: ej.WaitingPopup.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+
+ export interface DestroyEventArgs {
+
+ /** returns the cancel option value
+ */
+ cancel?: boolean;
+
+ /** returns the WaitingPopup model
+ */
+ model?: ej.WaitingPopup.Model;
+
+ /** returns the name of the event
+ */
+ type?: string;
+ }
+ }
+
+ class Grid extends ej.Widget {
+ static fn: Grid;
+ constructor(element: JQuery | Element, options?: Grid.Model);
+ static Locale: any;
+ model: Grid.Model;
+ defaults: Grid.Model;
+
+ /** Adds a grid model property which is to be ignored upon exporting.
+ * @param {Array} Pass the array of parameters which need to be ignored on exporting
+ * @returns {void}
+ */
+ addIgnoreOnExport(propertyNames: any[]): void;
+
+ /** Add a new record in grid control when allowAdding is set as true.
+ * @returns {void}
+ */
+ //addRecord(): void;
+
+ /** Add a new record in grid control when allowAdding is set as true.
+ * @param {Array} Pass the array of added Records
+ * @param {Array} optionalIf we pass serverChange as true, send post to server side for server action.
+ * @returns {void}
+ */
+ addRecord(data: any[], serverChange?: any[]): void;
+
+ /** Cancel the modified changes in grid control when edit mode is "batch".
+ * @returns {void}
+ */
+ batchCancel(): void;
+
+ /** Save the modified changes to data source in grid control when edit mode is "batch".
+ * @returns {void}
+ */
+ batchSave(): void;
+
+ /** Send a cancel request in grid.
+ * @returns {void}
+ */
+ cancelEdit(): void;
+
+ /** Send a cancel request to the edited cell in grid.
+ * @returns {void}
+ */
+ cancelEditCell(): void;
+
+ /** It is used to clear all the cell selection.
+ * @returns {Boolean}
+ */
+ clearCellSelection(): boolean;
+
+ /** It is used to clear specified cell selection based on the rowIndex and columnIndex provided.
+ * @param {number} It is used to pass the row index of the cell
+ * @param {number} It is used to pass the column index of the cell.
+ * @returns {Boolean}
+ */
+ clearCellSelection(rowIndex: number, columnIndex: number): boolean;
+
+ /** It is used to clear all the row selection or at specific row selection based on the index provided.
+ * @param {number} optional If index of the column is specified then it will remove the selection from the particular column else it will clears all of the column selection
+ * @returns {Boolean}
+ */
+ clearColumnSelection(index?: number): boolean;
+
+ /** It is used to clear all the filtering done.
+ * @param {string} If field of the column is specified then it will clear the particular filtering column
+ * @returns {void}
+ */
+ clearFiltering(field: string): void;
+
+ /** Clear the searching from the grid
+ * @returns {void}
+ */
+ clearSearching(): void;
+
+ /** Clear all the row selection or at specific row selection based on the index provided
+ * @param {number} optional If index of the row is specified then it will remove the selection from the particular row else it will clears all of the row selection
+ * @returns {Boolean}
+ */
+ clearSelection(index?: number): boolean;
+
+ /** Clear the sorting from columns in the grid
+ * @returns {void}
+ */
+ clearSorting(): void;
+
+ /** Collapse all the group caption rows in grid
+ * @returns {void}
+ */
+ collapseAll(): void;
+
+ /** Collapse the group drop area in grid
+ * @returns {void}
+ */
+ collapseGroupDropArea(): void;
+
+ /** Add or remove columns in grid column collections
+ * @param {Array|string} Pass array of columns or string of field name to add/remove the column in grid
+ * @param {string} optional Pass add/remove action to be performed. By default "add" action will perform
+ * @returns {void}
+ */
+ columns(columnDetails: any[] | string, action?: string): void;
+
+ /** Refresh the grid with new data source
+ * @param {Array} Pass new data source to the grid
+ * @param {boolean} optional When templateRefresh is set true, both header and contents get refreshed
+ * @returns {void}
+ */
+ dataSource(datasource: any[], templateRefresh?: boolean): void;
+
+ /** Delete a record in grid control when allowDeleting is set as true
+ * @param {string} Pass the primary key field Name of the column
+ * @param {Array} Pass the JSON data of record need to be delete.
+ * @returns {void}
+ */
+ deleteRecord(fieldName: string, data: any[]): void;
+
+ /** Delete the row based on the given tr element in grid.
+ * @param {JQuery} Pass the tr element in grid content to get its row index
+ * @returns {HTMLElement}
+ */
+ deleteRow($tr: JQuery): HTMLElement;
+
+ /** Destroy the grid widget all events bound using this._on will be unbind automatically and bring the control to pre-init state.
+ * @returns {void}
+ */
+ destroy(): void;
+
+ /** Edit a particular cell based on the row index and field name provided in "batch" edit mode.
+ * @param {number} Pass row index to edit particular cell
+ * @param {string} Pass the field name of the column to perform batch edit
+ * @returns {void}
+ */
+ editCell(index: number, fieldName: string): void;
+
+ /** It returns a value and if the input field values of edit form is not based on the validation rules then it will show the validation message.
+ * @returns {Boolean}
+ */
+ editFormValidate(): boolean;
+
+ /** Send a save request in grid.
+ * @returns {void}
+ */
+ endEdit(): void;
+
+ /** Expand all the group caption rows in grid.
+ * @returns {void}
+ */
+ expandAll(): void;
+
+ /** Expand or collapse the row based on the row state in grid
+ * @param {JQuery} Pass the target object to expand/collapse the row based on its row state
+ * @returns {void}
+ */
+ expandCollapse($target: JQuery): void;
+
+ /** Expand the group drop area in grid.
+ * @returns {void}
+ */
+ expandGroupDropArea(): void;
+
+ /** Export the grid content to excel, word or PDF document.
+ * @param {string} Pass the controller action name corresponding to exporting
+ * @param {string} optionalASP server event name corresponding to exporting
+ * @param {boolean} optionalPass the multiple exporting value as true/false
+ * @param {Array} optionalPass the array of the gridIds to be filtered
+ * @returns {void}
+ */
+ export(action: string, serverEvent?: string, multipleExport?: boolean, gridIds?: any[]): void;
+
+ /** Send a filtering request to filter one column in grid.
+ * @param {Array} Pass the field name of the column
+ * @param {string} string/integer/dateTime operator
+ * @param {string} Pass the value to be filtered in a column
+ * @param {string} Pass the predicate as and/or
+ * @param {boolean} optional Pass the match case value as true/false
+ * @param {any} optionalactualFilterValue denote the filter object of current filtered columns.Pass the value to filtered in a column
+ * @returns {void}
+ */
+ filterColumn(fieldName: any[], filterOperator: string, filterValue: string, predicate: string, matchcase?: boolean, actualFilterValue?: any): void;
+
+ /** Send a filtering request to filter single or multiple column in grid.
+ * @param {Array} Pass array of filterColumn query for performing filter operation
+ * @returns {void}
+ */
+ filterColumn(filterQueries: any[]): void;
+
+ /** Get the batch changes of edit, delete and add operations of grid.
+ * @returns {any}
+ */
+ getBatchChanges(): any;
+
+ /** Get the browser details
+ * @returns {any}
+ */
+ getBrowserDetails(): any;
+
+ /** Get the column details based on the given field in grid
+ * @param {string} Pass the field name of the column to get the corresponding column object
+ * @returns {any}
+ */
+ getColumnByField(fieldName: string): any;
+
+ /** Get the column details based on the given header text in grid.
+ * @param {string} Pass the header text of the column to get the corresponding column object
+ * @returns {any}
+ */
+ getColumnByHeaderText(headerText: string): any;
+
+ /** Get the column details based on the given column index in grid
+ * @param {number} Pass the index of the column to get the corresponding column object
+ * @returns {any}
+ */
+ getColumnByIndex(columnIndex: number): any;
+
+ /** Get the list of field names from column collection in grid.
+ * @returns {Array}
+ */
+ getColumnFieldNames(): any[];
+
+ /** Get the column index of the given field in grid.
+ * @param {string} Pass the field name of the column to get the corresponding column index
+ * @returns {number}
+ */
+ getColumnIndexByField(fieldName: string): number;
+
+ /** Get the column index of the given headerText of column in grid.
+ * @param {string} Pass the headerText of the column to get that column index
+ * @param {string} optionalOptional Pass the field name of the column.
+ * @returns {number}
+ */
+ getColumnIndexByHeaderText(headerText: string, field?: string): number;
+
+ /** Get the content div element of grid.
+ * @returns {HTMLElement}
+ */
+ getContent(): HTMLElement;
+
+ /** Get the content table element of grid
+ * @returns {Array