當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript createField.createField函數代碼示例

本文整理匯總了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;未經允許,請勿轉載。