@agile-central-technical-services/utils-field-picker

1.0.3 • Public • Published

utils-field-picker

This is a screenshot

Example usage

To use the control on a page:

controlsArea.add({
    xtype: 'tsfieldpickerbutton',
    modelNames: [modelName],
    context: this.getContext(),
    stateful: true,
    stateId: this.getViewType() + 'fields', // columns specific to type of object
    alwaysSelectedValues: alwaysSelectedColumns,
    listeners: {
        fieldsupdated: function(fields) {
            // fields is the currently selected fields from the picker
        },
        scope: this
    }
});

To get the current selected fields:

this.down('tsfieldpickerbutton').getFields()

Developer Notes

To Update

  1. npm version patch - This will update the package.json to a new version and create a git tag (e.g. v1.0.1). It will also run the postversion script to push the changes and tag to GitHub.
  2. npm publish --access public - This will publish the new version to npmjs.org
  3. Create the new release in `utils-field-picker/releases'

Package Sidebar

Install

npm i @agile-central-technical-services/utils-field-picker

Weekly Downloads

3

Version

1.0.3

License

ISC

Unpacked Size

8.35 kB

Total Files

4

Last publish

Collaborators

  • tyrjo