[WordPress] 外掛分享: LH Sortable Tables

首頁外掛目錄 › LH Sortable Tables
WordPress 外掛 LH Sortable Tables 的封面圖片
80+
安裝啟用
★★★★★
5/5 分(2 則評價)
1328 天前
最後更新
問題解決
WordPress 4.0+ PHP 5.6+ v1.01 上架:2020-10-05

內容簡介

Table Sorter 可將您在文章、頁面或自訂文章類型內有 THEAD 和 TBODY 標籤的標準 HTML 表格轉換為可排序的表格,而不需要重新整理頁面。它具有許多實用功能,包括:

多列排序。
禁用從特定列進行排序。
不同的排序類型。
跨瀏覽器支援。

要製作表格,只需在 HTML 檢視中的表格元素中添加 class=”sortable”。

注意:與其他外掛不同,此外掛不會無謂地減慢您的網站速度。只有在內容的表格中添加了上述 class 才會將添加排序的 JavaScript 添加到頁面中。

由於 JavaScript 是原生 JS,因此不太可能與其他外掛發生衝突。

此外掛使用 Jonas Earendel 的Sortable 表格庫。因此,高級的說明可以在該庫中找到,並可在該庫中找到許多其他功能。

在此處查看演示:https://lhero.org/sortable-table-demo/。

喜歡此外掛嗎?請考慮留下5星評價。

喜歡此外掛或想要幫助 LocalHero 項目嗎?請考慮進行捐贈。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.01) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「LH Sortable Tables」→ 直接安裝(推薦)

原文外掛簡介

Table Sorter turns standard HTML table (with THEAD and TBODY tags) in your post, page, or CPT content into a sortable table without page refresh. It has many useful features including :

Multi-column sorting.
Disable sorting from particular column(s).
Different sorting types.
Cross-browser support

To make a table just add class=”sortable” to the table element in the html view.
NOTE Unlike other plugins this plugin will not unneccessarily slow down your site. The javascript to add the sorting is only added to the page is the above class is added to a table in the content.
As the javascript is vanilla it is unlikely to connflict with other plugins
This plugin uses Jonas Earendel’s Sortable table library. So advanced documenation can be found there and its many other features can be found there.
View a demo here: https://lhero.org/sortable-table-demo/.
Like this plugin? Please consider leaving a 5-star review.
Love this plugin or want to help the LocalHero Project? Please consider making a donation.

延伸相關外掛

文章
Filter
Mastodon