Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.12 KB

README.md

File metadata and controls

21 lines (16 loc) · 1.12 KB

afwrap-xautocomplete

This is a wrap over the xautocomplete package to work with AutoForm.

Explanation

In the examples folder you have a working example and a battery of tests with Jasmine.

Examples:

{{#autoForm id="1" doc=this type="method" meteormethod='save' schema='bookSchema'}}
    <div>{{> afFieldInput  type='xautocomplete' formid="1" name='surname' call='authors' fieldref='surname' renderfunction='renderAuthors'}}</div>
    <div>{{> afFieldInput  type='xautocomplete' formid="1" name='surnames' call='authors' xmultiple=true fieldref='surname' renderfunction='renderAuthors'}}</div>
    <div>{{> afFieldInput  type='xautocomplete' formid="1" name='authorId' call='authors' reference='authors' fieldref='surname' renderfunction='renderAuthors'}}</div>
    <div>{{> afFieldInput  type='xautocomplete' formid="1" name='authorsId' call='authors' xmultiple=true reference='authors' fieldref='surname' renderfunction='renderAuthors'}}</div>
    <div><button class="ui button" type="submit">submit</button></div>
{{/autoForm}}