-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add example for the function operator #8793
Add example for the function operator #8793
Conversation
@DesignThinkerer It appears that this is your first contribution to the project, welcome. With apologies for the bureaucracy, please could you prepare a separate PR to the 'tiddlywiki-com' branch with your signature for the Contributor License Agreement (see contributing.md). |
✅ Deploy Preview for tiddlywiki-previews ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Filter operators have a system to link to examples. IMO we should keep that mechanism, for consistency reasons. See eg: https://deploy-preview-8793--tiddlywiki-previews.netlify.app/#all%20Operator |
I'm aware, however I was not able to find a way to elegantly display the predefined functions as seen in this tiddler: https://deploy-preview-8793--tiddlywiki-previews.netlify.app/#filter%20Operator%20(Examples) I used the same setup as usual, but with the new test case widget to allow the user to clearly see the functions that are being set. Here's an attempt anyway: Which one do you prefer, with testcase or without testcase ? |
For consistency I personally prefer the "usual setup" as in the screenshot. @Jermolene -- What do you think? |
Thank you for examples. One simple example is to list first five tiddlers tagged Learning. The number of results can be sent as an input attribute. |
… introductory function to gradually increase complexity
Ok, I added a function with the sole purpose of getting the value for a field, this way the complexity increase more gradually. I also used the format recommanded by @pmario. I added an example at the end showing how these functions can be used together. What do you think? https://deploy-preview-8793--tiddlywiki-previews.netlify.app/#function%20Operator%20(Examples) |
Show the name of the plugin for the subtiddler used in the demo
Much better, thank you! |
DesignThinkerer has signed the Contributor License Agreement (see contributing.md) |
Thanks @DesignThinkerer |
This PR add an example showing how to use the function operator to examine changes made on shadow tiddlers.
Submitted using https://saqimtiaz.github.io/tw5-docs-pr-maker/.