Extending wj-flex-grid-column (AngularJS)

Posted by: minorbug on 12 March 2018, 1:46 pm EST

  • Posted 12 March 2018, 1:46 pm EST

    I would like to add an attribute directive “canHide” to prevent certain columns from being hidden via a separate component I’ve created. So far I haven’t been able to get my directive’s link or controller functions to execute when adding “can-hide” to wj-flex-grid-column (though the directive function itself is called when the attribute is added.

    See http://jsfiddle.net/jaa3hq0a/14/. Any suggestions would be appreciated!

  • Posted 13 March 2018, 6:04 am EST

    Due to the internal design design of grid you cannot apply a directive to flex-grid-column-itself.

    Instead what you can do is create a directive for flexgrid that will take care of can-hide for grid-columns.

    Please refer to updated fiddle here:-http://jsfiddle.net/LvowLtbv/1/

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels