承接 knutsv/flex-table 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

knutsv/flex-table

Composer 安装命令:

composer require knutsv/flex-table

包简介

This field type makes creating and editing tables in Craft a breeze.

README 文档

README

This field type makes creating and editing tables in Craft a breeze.

Screenshot

Requirements

This plugin requires Craft CMS 3.0.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require knutsv/flex-table
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for FlexTable.

NOTE

This field type is under development. Try it out, but it's a bit ruff around the edges.

FlexTable Overview

  • Edit tables like in Excel or other spreadsheet programs, enter creates a new line, tab adds a new column
  • Creates accessible tables with table headers and table caption

Using FlexTable

Create a new field and choose the FlexTable field type and add the field to an entry type.

When you edit an entry of this type you will get the option to add a table. You can choose the number of rows and columns to create the table with, and you can choose a table header layout to start with. Header row, header column or no headers. All of this can be changed later.

When editing a table click inside a cell. You can begin typing, or you can move to differen cells uting tab, shift + tab, or the arrow keys.

If you select a cell (without editing the contents) you can right click to get a context menu. This menu lets you add rows and columns, change cell, row or column type, and change cell, row or column alignment. You can also delete rows and columns.

Templating

You can use the data returned from the field like so:

  <table>
    <caption>{{ entry.field.meta.caption }}</caption>
    <thead>
      {% for row in entry.field.thead %}
        <tr>
          {% for cell in row %}
            <{{ cell.type }} align="{{ cell.align }}">{{ cell.text }}</{{ cell.type }}>
          {% endfor %}
        </tr>
      {% endfor %}
    </thead>
    <tbody>
      {% for row in entry.field.tbody %}
        <tr>
          {% for cell in row %}
            <{{ cell.type }} align="{{ cell.align }}">{{ cell.text }}</{{ cell.type }}>
          {% endfor %}
        </tr>
      {% endfor %}
    </tbody>
  </table>

FlexTable Roadmap

Some things to do, and ideas for potential features:

  • Browsertesting (currently only tested in Chrome)
  • Major GUI-improvements (make it more Excel-like)
  • Implement copy/paste (import) from Excel/CSV

Brought to you by Knut Svangstu

统计信息

  • 总下载量: 28
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固