We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [garnish]

The Javascript UI library used by Craft.

Filter by
Sorted by
Tagged with
23
votes
1answer
1k views

How can my plugin generate a generic modal window in the Control Panel?

I'm working on a plugin, and it requires a modal to be displayed when the user interacts with a field of my Field Type. When the user finishes interacting with the modal, they would click "Done". ...
6
votes
1answer
427 views

Filtering and sorting lists in a plugin

Whats the recommended way to have javascript based filtering and sort table views in a plugin tab? Is is possible to use garnish to do that or should we be looking at external libraries like: http:...
3
votes
2answers
464 views

Access add and remove events with the Craft Element Selector?

Is there any way to access an event, and trigger some function, when an element is added / removed with the Craft Element Selector logic available in Garnish? I am working on a custom field type and ...
2
votes
1answer
190 views

Setting selected elements in a BaseElementSelectorModal (or BaseElementIndex)

I'm writing a Javascript based plugin which creates an instance of Craft.BaseElementSelectorModal. When the modal is created, I'd like to have some of the entries in the modal's element index auto-...
2
votes
1answer
406 views

Possible to override Garnish.Modal? [Plugin]

Is there a way to override Garnish.Modal? For example, I have a custom modal which uses a custom form but I want to be able to use the built in forms.elementSelect to select from a user list. When I ...
1
vote
1answer
84 views

Garnish event when changing category group

When I am on the categories index (admin/categories), is there a Garnish event that fires when you select a different category group in the sidebar? I want to add some custom JS after the AJAX request ...