danieliser / wp-js-form-sample-plugin Goto Github PK
View Code? Open in Web Editor NEWA sample plugin demonstrating the capabilities of our JavaScript based form rendering for WP Admin.
A sample plugin demonstrating the capabilities of our JavaScript based form rendering for WP Admin.
Similar to using PHP Storm, when you go into a tabbed settings interface there could be a search field, as you type fields & tabs are highlighted / hidden when they match/don't match the search result.
For instance a query for "user role" might show field "required_user_roles" etc
Because the search can search the original field array we can assign specific fields to check. Subsequently we can add a new key for search keywords.
'keywords' => array( 'user roles', 'user role', 'roles', 'users', 'user' ),
This would allow fine grained control over search to ensure users find the needed settings quickly.
Allow for negative rules, JS based rules as well.
'dependencies' => array(
'custom' => values.field_id === 10 && values.multicheck_field.indexOf('option')
'custom' => "jQuery('#post_id').val() === 1"
)
Not sure how to logistically work that out yet.
Add reload_form => true which will cause an AJAX request to get updated fields array to re render form and tabs.
Should send current values for testing.
Example might be that we donβt want to load any MC extra tab for form shortcode, but rather add additional fields to existing tabs only when mc is the chosen provider.
Also could allow loading mc api data on demand for each set of fields. I e only show interest groups for chosen list.
Allows further field dependency via AJAX & php filters.
Each field type should be able to be hooked in for various functionalities like sanitization, validation, pre-submit processing, pre-render etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.