We took refactoring to a completely new level. Often you won't need to leave the HTML editor to change Slot directive name or widget role as renames can be done by changing the relevant HTML attributes.
By renaming things in GlueCodes Studio, you also rename all its references in code (when possible).
You can rename things using a left hand side project explorer of the studio as you would in any other code editor. Here is what happens:
When renaming a command:
actions
in extended tags are changed across all pages.actions
in widget input parameters are changed across all widgets.When renaming a provider:
actionResults
in extended tags are changed across all pages.actionResults
in widget input parameters are changed across all widgets.When renaming a reusable slot:
gc-name
of reusable slot directive is changed across all pages.When renaming a widget role:
gc-role
of widget directive is changed in the particular page or reusable slot.When renaming a global style:
It's also possible to rename things using HTML attributes of certain directives. These are:
gc-name
of a slot directive renames its scoped style.gc-name
of a reusable slot unless it hasn't been used anywhere yet, renames the reusable slot and its scoped style. Otherwise, a new - reusable slot is created and on each keystroke, it's renamed.gc-role
of a widget renames its scoped style.