本文整理汇总了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)
];
}
开发者ID:gurdiga,项目名称:xo,代码行数:9,代码来源:PersonSection.ts
示例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)
];
}
开发者ID:gurdiga,项目名称:xo,代码行数:9,代码来源:PersonSection.ts
示例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);
}
开发者ID:gurdiga,项目名称:xo,代码行数:15,代码来源:InquirySection.ts
示例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);
}
开发者ID:gurdiga,项目名称:xo,代码行数:16,代码来源:IndividualFieldList.ts
示例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);
}
开发者ID:gurdiga,项目名称:xo,代码行数:16,代码来源:CompanyFieldList.ts
示例6: before
before(function() {
labelText = 'First name';
internalName = 'first-name';
fieldValues = { 'first-name': 'John' };
field = createField(LabeledTextField, labelText, internalName, fieldValues);
fieldElement = getWidgetDOMElement(field);
});
开发者ID:gurdiga,项目名称:xo,代码行数:8,代码来源:createFieldTest.ts
示例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;
}
}
开发者ID:gurdiga,项目名称:xo,代码行数:19,代码来源:SentenceSection.ts
注:本文中的app/utils/createField.createField函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论