Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- element: "menu",
- storeAs: "something", // Will be an array
- name: "Toggle",
- types: {
- option: "Name", // User picked types will not be present if there are no more than 2 types.
- },
- // Explanation why types & UItypes aren't merged: Removing an option from types will prevent it from showing up in user picked types. This is kept for backwards compatibility in case if the action creator decides to remove a type but doesn't want to break anything.
- UItypes: { // Basically, same structure as an action for the most part
- option: {
- name: "Option", // This will show up everywhere except the user picked types.
- data: {},
- pullVariables: bool, // Scrape variables from this or not
- UI: [
- // UI goes here
- ]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment