Jump to content

Documentation for "\WHMCS\Table" class and standard styles


JavierCN
Go to solution Solved by DennisHermannsen,

Recommended Posts

Hello:

I would appreciate it if you could provide me with some information on the following:

Documentation for "\WHMCS\Table" Class:  I would like to know if there is any official documentation available for this class.

Standard styles: In addition to the class documentation, I am curious to know if WHMCS provides any standard styles for creating modules or pages. Specifically, I am interested in styles for tables, tabs, and other common UI elements used in module development.

Regards,

Javier

 
 
 
 

 

Link to comment
Share on other sites

  • Solution
<?php 

use WHMCS\Table;

$width = 20; //default width
$name = '';
$field = '';
$fullwidth = false;
$table = new Table($width);
$table->add($name, $field, $fullwidth); // Add as many rows as you like
$table->output(); //returns the HTML of the table

The tables are the same ones that are used in the admin area on clientsservices.php. They don't really offer anything special.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated