@cute-dw/core
Version:
This TypeScript library is the main part of a more powerfull package designed for the fast WEB software development. The cornerstone of the library is the **DataStore** class, which might be useful when you need a full control of the data, but do not need
48 lines (47 loc) • 2.16 kB
TypeScript
export type CodeTableItem = {
label: string | null;
value: any;
icon?: string;
};
export interface DwColumnProperties {
/** The datatype of the column. Possible options:
* Char(n) - n is the number of characters,
* Date,
* DateTime,
* Decimal(n) - n is the number of decimal places,
* Int,
* Long,
* Number,
* Real,
* Time,
* Timestamp,
* ULong
*/
type: string;
/** The name of the database column in the format [tablename.]columnname. If not specified this value equates to value of the name property */
dbname?: string;
/** The initial value of the column in a newly inserted row. Default is _null_. */
initial?: any;
/** Values property is array of code table items that are used by columns with the following edit styles: CheckBox, RadioButtons, DropDownListBox, etc. */
values?: CodeTableItem[];
/** Whether the database is to supply the value of the column in a newly inserted row. Default is _false_. */
identity?: boolean;
/** Require upload the current value of the column in the database table after updating */
autosync?: boolean;
/** Whether the column is part of the database table primary key. Default is _false_. */
key?: boolean;
/** Whether the column is updatable. Default is _true_. */
updatable?: boolean;
/** Whether the column is included in the Update Where clause. Default is _true_. */
updatewhereclause?: boolean;
/** The validation expression for the specified column. Validation expressions are expressions that evaluate to _true_ or _false_. They provide checking of data that the user enters the DataWindow. */
validation?: string;
/** The message that displayed instead of the default message when an `onItemErrorEvent` occurs in the column. */
validationMsg?: string;
/** The tag value of the specified control. The tag value can be any value you see fit to use in your application. */
tag?: any;
}
export type TableColumn = {
/** The name of the column */
name: string;
} & DwColumnProperties;