Giter VIP home page Giter VIP logo

liferay-objects-data-table's Introduction

Sortable Data Table Fragment for Liferay Objects

It is a very common ask for teams to want to show data in a sortable and filterable data table. Using Liferay Objects, Fragments, and Liferay's Headless API teams can quickly make fully functional systems that are more powerful and require less customization than ever before!

Here is a good example with complete fragment code to get you started.

Liferay continues to invest in features that make low-code development possible. Using Liferay Objects, Collections, Forms, and Fragments, teams can quickly make fully functional systems that are more powerful and require less customization than ever before! Liferay Objects are automatically integrated with other Liferay Frameworks like Workflow, Permissions, Asset so that they can be immediately used alongside any out-of-the-box capabilities.

Let’s build great things together!!

drawing

7.4 Setup

Liferay Object

  1. Create Electric Vehicle Object (Example: Feel free to build an object structure that suits your needs)

  2. Object Needs the Fields

Field Type Required
Make String Yes
Model String Yes
EV Type String (or picklist) Yes
Battery Range Integer Yes
Total Range Integer Yes

drawing

  1. Finish publishing your new object with in company scope.

Load content

Loading many records quickly is easy to do using the headless api's batch endpoint. Example data can be found here for the Electric Vehicle example object.

drawing

jQuery Configuration

Note: Current version required jquery for event handling, dom traversal, and dropdown behavior.

Enable jQuery in "System Settings" > "Third Party" > "jQuery"

Build Fragment Bundle

Navigate to the downloaded collection and run the following command. Alternatley, download the compressed zip file from here.

npm run compress

Import /liferay-objects-data-table/build/liferay-fragments.zip into site fragments.

Page Setup

  • Add the "Datatable from Objects" fragment to page

  • Configure your datasource and columns in the sidebar.

drawing

drawing

Contribute!

Would love to hear comments and suggestions to make it better or provide more options!

liferay-objects-data-table's People

Contributors

weskempa-liferay avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.