Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optionsProperties to @Autocomplete #63

Open
pete-by opened this issue Jun 24, 2017 · 0 comments
Open

Add optionsProperties to @Autocomplete #63

pete-by opened this issue Jun 24, 2017 · 0 comments

Comments

@pete-by
Copy link

pete-by commented Jun 24, 2017

autocomplete component in Granite UI supports a remote source for the options, see /libs/granite/ui/components/foundation/form/autocomplete/list/list.jsp:

       * Example::
       *
       *    /path.html?start={start}&end={end}&query={query}&my-other-param=param1
       *
       * If this property is not set, the items are read from the DataSource.
       */
      - src (StringEL)

To use this feature the expected dialog field definition should be:

<options jcr:primaryType="nt:unstructured" 
sling:resourceType="granite/ui/components/foundation/form/autocomplete/list" 
src="/path.html?start={start}&amp;end={end}&amp;query={query}" />

Corresponding plugin's annotation for Touch UI:

@Autocomplete(
  ...
  optionsProperties = {
      @Property(name='src', value='/path.html?...')
  }

)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant