[]
        
(Showing Draft Content)

GC.Spread.Sheets.InputMask

Namespace: InputMask

Spread.Sheets.InputMask

Table of contents

Interfaces

Functions

Functions

getNamedPatterns

getNamedPatterns(): INamedPattern[]

Get all named patterns.

static

Returns

INamedPattern[]

returns all the named patterns.


namedPattern

namedPattern(name, pattern?): string | void

Set or get named pattern.

static

Parameters

Name Type Description
name string The name of pattern string.
pattern? null | string -

Returns

string | void

if no pattern is set, returns the pattern string of the name, otherwise returns void.


validatePattern

validatePattern(pattern): IValidatePatternResult

Verify whether the pattern is valid.

static

example

let verifyResult = GC.Spread.Sheets.InputMask.validatePattern('[a0_]{8}');

Parameters

Name Type Description
pattern string The pattern string.

Returns

IValidatePatternResult

returns the verified result.