Comments (12)
The widget itself should be called datatable
. We will document it soon, most likely as part of the planned API docs.
from docs.
That readme only mentions one event, however I've found seven events:
data.getRecords
data.getCount
data.createRecord
data.updateRecord
data.deleteRecord
table.getDropdownOptions
table.getAutocompleteOptions
I've just listed in them my master list of OctoberCMS events so far, but more info on what this is for and how to utilize it would be great :)
from docs.
API docs are sparse on this right now, but available here: http://octobercms.com/docs/api/backend/formwidgets/datatable
@daftspunk Should the API docs generator be looking for additional documentation in the form of an identically named .md file to include with the inline documentation as well, or at least list them in the API docs folders that get generated? http://octobercms.com/docs/api/backend/widgets/table doesn't include all of the information that https://github.com/octobercms/october/blob/master/modules/backend/widgets/table/README.md does.
from docs.
No, one is PHP docs other is JS docs.
from docs.
@daftspunk Any update for this?
from docs.
@datune @daftspunk doesn't really check his GitHub notifications, reach out to him directly on Slack or email if you want a better chance of a response.
from docs.
@LukeTowers Is there any documentation available on using a Server-side data table? I'm trying to use it in a form and I'm not able to figure it out.
from docs.
@SaifurRahmanMohsin see https://github.com/octobercms/docs/blob/master/backend-forms.md#data-table. The website will be updated with the github doc updates soon. @bennothommo does that documentation cover off any custom PHP stuff required for the use of that widget?
from docs.
@LukeTowers no, just the configuration side at the moment. From what I can tell, I think the server-side data table functionality may not be complete.
from docs.
@bennothommo The server side data table doesn’t seem to work at all when used in a backend form. I think that it is being forced to be set as “client” and so there isn’t really a way to make it work as server-side... unless I’m missing something, which is why I am requesting some documentation in that area.
from docs.
@SaifurRahmanMohsin What is it that you are trying to achieve? If it's a case of just having tabular data stored in a model, that's already handled by the client-side data table. As long as you have the field for the data table data added to the jsonable
attribute, it should be able to save the data from the data table without issue.
If you're trying to store multiple records of a model, that's a little more tricky, and will require you to handle the POST data from the data table manually. You could potentially base it off the implementation of the data table used in the Builder plugin for the Database schema designer.
from docs.
@bennothommo I have a custom manager class in a plugin which returns a list of API node paths (string values), exposed by various plugins. I’m trying to set up a data table which allows the list to appear in form of table with additional 2 fields: enabled and auth mechanism (dropdown of available auth schemes to link with that node). When user selects the option, it has to be stored internally so the API manager enforces that throughout the web app.
from docs.
Related Issues (20)
- Is it possible to make the custom validation messages a bit easier to find in the doc's HOT 8
- Correct and easy procedure to upgrade octobercms 1.0 to 1.1 HOT 1
- PHP version in public docs is incorrect but in setup-installation.md is ok HOT 2
- Blockquote advice in the Extending models section HOT 1
- Google asked me to add these things into the doc's
- Reorder HOT 2
- Add an example of implementation validation rules in a model extending HOT 2
- Emmet and autocomlete in October 2.*
- Add custom file name config information HOT 1
- When I was translating the document, I found a wording flaw HOT 1
- a slight deficiency HOT 1
- Link dead HOT 1
- File Attachments - attachMany - validation example - forceSave needed HOT 1
- https://octobercms.com/docs still redirect to v2 HOT 1
- Dead links on Configuration > CSRF chapter HOT 1
- Ajax extra features are gone HOT 1
- Broken link HOT 1
- Add version independent links please HOT 1
- Inconsistent documentation regarding relation definition options HOT 1
- Octobercms v3.5.15 has a Reflective XSS vulnerability HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.