-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installer add another layer of behavior script #3
Comments
@macMikey I agree about needing to create the behavior that the developer can put their own scripts in. We definitely don't want the developer editing any behaviors that come with the helper. I think the DataView helper should come with a command that creates the DataView, creates a behavior if the developer desires, and then returns a reference to the newly created control. Any helper that builds on the DataView can then call this command and then customize the newly created DataView group control as needed. For example, the File Browser could perform the following steps when calling
As for where to the put the behavior, I can think of a few possibilities.
My thoughts on implementation:
So maybe there are three prompts?
One last thought - the handler that prompts the user for options should be separate from the handler that creates the DataView. This allows the developer to automate creation of DataViews by just passing in parameters. It also allows for an IDE component to be created which could make a call to the handler that creates the DataView. |
@macMikey I mocked up an example of in the dataview repo. Take a look at this commit on the trevordevore/levurehelper-dataview@23a11c9 This has been lightly tested. |
Hopefully this weekend I'll get a chance to look at it. |
@macMikey I made some more progress on commands that automatically create DataViews and DataView Trees. Take a look at the following branches in each repo: https://github.com/trevordevore/levurehelper-dataview/tree/tkd-ide-library You will find an ide folder in each branch which has a library and templates. The DataView repo has a create dialog and all of the logic. The DataView Tree repo shows how to customize the DataView library commands and use your own row templates, etc. See |
we definitely need to build a real installer for levure add-ons. |
I think it could be built into the Bakers Assistant: Repo: https://github.com/trevordevore/bakers-assistant Although there is no UI for it yet, there is some code in the repo that downloads the |
I think the installer for the fb should add one additional behavior layer above the fb, for storing the developer's code that is specific to a project. Example: I am adding context menu handlers, keyboard events, a double-click handler, etc., but none of that should be foisted on the developer in every fb, so it should probably be up a level from the fb (it could be in a script for the fb group, but this is Levure, so it should be in a behavior SOS).
The question I am wrestling with is placement of said SOS. When the installer runs it could prompt, or have a dialog, or for the git-it-done version I'm thinking of just throwing it into /ui//behaviors. Thoughts?
The text was updated successfully, but these errors were encountered: