本文整理汇总了TypeScript中app/utils/createField.createField函数的典型用法代码示例。如果您正苦于以下问题:TypeScript createField函数的具体用法?TypeScript createField怎么用?TypeScript createField使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了createField函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: createFieldsForIndividual
function createFieldsForIndividual(fieldValues) {
return [
createField(LabeledTextField, 'Nume', 'nume', fieldValues),
createField(LabeledTextField, 'IDNP', 'idnp', fieldValues),
createField(LabeledDateField, 'Data naşterii', 'data-naşterii', fieldValues),
createField(LabeledLargeTextField, 'Domiciliu', 'domiciliu', fieldValues),
createField(LabeledLargeTextField, 'Note', 'note', fieldValues)
];
}
示例2: createFieldsForCompany
function createFieldsForCompany(fieldValues) {
return [
createField(LabeledTextField, 'Denumire', 'denumire', fieldValues),
createField(LabeledTextField, 'IDNO', 'idno', fieldValues),
createField(LabeledLargeTextField, 'Sediu', 'sediu', fieldValues),
createField(LabeledTextField, 'Persoană de contact', 'persoană-de-contact', fieldValues),
createField(LabeledLargeTextField, 'Note', 'note', fieldValues)
];
}
示例3: InquirySection
export function InquirySection(fieldValues) {
var domElement = createDOMElement('INQUIRY-SECTION');
var childWidgets = [
createField(LabeledTextField, 'Numărul de înregistrare', 'numărul-de-înregistrare', fieldValues),
createField(LabeledDateField, 'Data depunerii cererii', 'data-depunerii', fieldValues)
];
var section = createSection(childWidgets);
section.appendTo(domElement);
this.getValue = getFieldValueCollector(childWidgets);
this.appendTo = getAppenderOf(domElement);
this.setStyle = getStylerOf(domElement);
}
示例4: IndividualFieldList
export function IndividualFieldList(fieldValues) {
var domElement = createDOMElement('person-field-list');
WidgetRole.apply(this, [domElement]);
var fields = [
createField(LabeledTextField, 'Nume', 'nume', fieldValues),
createField(LabeledTextField, 'IDNP', 'idnp', fieldValues),
createField(LabeledDateField, 'Data nașterii', 'data-nașterii', fieldValues),
createField(LabeledLargeTextField, 'Domiciliu', 'domiciliu', fieldValues),
createField(LabeledLargeTextField, 'Note', 'note', fieldValues)
];
appendWidgets(fields).to(domElement);
this.getFieldValues = getFieldValueCollector(fields);
}
示例5: CompanyFieldList
export function CompanyFieldList(fieldValues) {
var domElement = createDOMElement('company-field-list');
WidgetRole.apply(this, [domElement]);
var fields = [
createField(LabeledTextField, 'Denumire', 'denumire', fieldValues),
createField(LabeledTextField, 'IDNO', 'idno', fieldValues),
createField(LabeledLargeTextField, 'Sediu', 'sediu', fieldValues),
createField(LabeledTextField, 'Persoană de contact', 'persoană-de-contact', fieldValues),
createField(LabeledLargeTextField, 'Note', 'note', fieldValues)
];
appendWidgets(fields).to(domElement);
this.getFieldValues = getFieldValueCollector(fields);
}
示例6: before
before(function() {
labelText = 'First name';
internalName = 'first-name';
fieldValues = { 'first-name': 'John' };
field = createField(LabeledTextField, labelText, internalName, fieldValues);
fieldElement = getWidgetDOMElement(field);
});
示例7: createFields
function createFields(fieldValues) {
return [
createLabeledSelectField('Instanţa de judecată', 'instanţa-de-judecată', COURT_LEVELS_AS_OPTGROUPS),
createField(LabeledTextField, 'Numărul hotărîrii', 'numărul-hotărîrii', fieldValues),
createField(LabeledDateField, 'Data hotărîrii', 'data-hotărîrii', fieldValues),
createField(LabeledLargeTextField, 'Dispozitivul', 'dispozitivul', fieldValues),
createLabeledSelectField('Obiectul urmăririi', 'obiectul-urmăririi', SUBJECT_OPTIONS),
// Poate de arătat mesaj de atenţionare dacă intentarea e prea tîrzie
// relativ la provederile articolelor 16 şi 17.
createField(LabeledDateField, 'Data rămînerii definitive', 'data-rămînerii-definitive', fieldValues),
createField(LabeledDateField, 'Data eliberării', 'data-eliberării', fieldValues)
];
function createLabeledSelectField(labelText, internalName, options) {
var field = new LabeledSelectField(labelText, options, fieldValues[internalName]);
field.internalName = internalName;
return field;
}
}