SkillAgentSearch skills...

Jquery.table.transpose

jquery plugin to transpose HTML table

Install / Use

/learn @riteshgandhi/Jquery.table.transpose
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

jquery.table.transpose

This jquery plugin transposes html table. It has two modes 1) Horizontal and 2) Vertical

Modes: 0 = Horizontal, 1 = Vertical

Horizontal:-

When mode is set to Horizontal, plugin will transpose existing HTML table with horizontal headers to Vertical

Vertical:-

When mode is set to Vertical, plugin will transpose existing HTML table with vertical headers to Horizontal

Sample:

//initialize plugin on table with horizontal headers

if (!$("#htable").is(":blk-transpose")){ $("#htable").transpose({ mode: 0 }); }

//initialize plugin on table with vertical headers

if (!$("#vtable").is(":blk-transpose")){ $("#vtable").transpose({ mode: 1}); }

//call Transpose method to transpose table

$("#htable").transpose("transpose"); $("#vtable").transpose("transpose");

//call reset method to put the table back to original format

$("#htable").transpose("reset"); $("#vtable").transpose("reset");

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated4y ago
Forks4

Languages

JavaScript

Security Score

60/100

Audited on Feb 11, 2022

No findings