Giter VIP home page Giter VIP logo

jcdatatable's Introduction

JCDatatable

JCDatatable is a adaptation of Javascript Datatables inside Salesforce. With this component you could:

  • Pretty tables
  • Pagination
  • Instant search and multi-column
  • Page Sizes and default page size on load.

Version

Beta 0.1

Deploy to Salesforce

Deploy to Salesforce

Sample Usage PageBlockTable

<apex:pageBlock title="PageBlockTable">

    <apex:pageBlockTable value="{!accounts}" var="acc" id="pageBlockTable">
        <apex:column value="{!acc.AccountNumber}"/>
        <apex:column value="{!acc.Name}"/>
        <apex:column value="{!acc.Industry}"/>
        <apex:column value="{!acc.NumberOfEmployees}"/>
        <apex:column value="{!acc.Website}"/>
        <apex:column value="{!acc.Owner.Name}"/>
    </apex:pageBlockTable>

    <c:JCDatatable tableID="pageBlockTable" EmptyMsg="No hay datos"/>

</apex:pageBlock>

Sample Usage DataTable

<apex:pageBlock title="dataTable">
    <apex:dataTable value="{!accounts}" var="acc" id="dataTable">
        <apex:column headerValue="Account Number">              
            <apex:outputLink value="/{!acc.Id}" id="theLink1">{!acc.AccountNumber}</apex:outputLink>
        </apex:column>
        <apex:column headerValue="Name">
            <apex:outputLink value="/{!acc.Id}" id="theLink3">{!acc.Name}</apex:outputLink>
        </apex:column>
        <apex:column headerValue="Industry">
            {!acc.Industry}
        </apex:column>          
        <apex:column headerValue="Employees">
            {!acc.NumberOfEmployees}
        </apex:column>
        <apex:column headerValue="Website">
            {!acc.Website}
        </apex:column>
        <apex:column headerValue="Owner">
            <apex:outputLink value="/{!acc.Owner.Id}" id="theLink5">{!acc.Owner.Name}</apex:outputLink>
        </apex:column>
    </apex:dataTable>

    <c:JCDatatable tableID="dataTable" EmptyMsg="No hay datos"/>

</apex:pageBlock>

Todo's

  • Fully internationalisable
  • Responsive
  • Alternative themes
  • Export to CSV and PDF, copy to clipboard and print

jcdatatable's People

Contributors

juanpe avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.