Giter VIP home page Giter VIP logo

statamic-tabs's Introduction

Statamic Tabs

A Statamic plugin to add a Tab Fieldtype. Add tabs anywhere you have other fields!

Screenshot of Tabs

Installation

Install this plugin using composer.

composer require eminos/statamic-tabs

Features

  • Add Tabs anywhere you need them. Entry, side panel, Replicator set, Bard set, Global set, etc...
  • Doesn't touch your other field data, ie. the data is not scoped.
  • Conditionally show/hide a tab. You add the conditions just as with any other field.
  • Optionally add an icon to the tab.
  • You can search and pick an Iconify icon (over 150 000 icons!) if you have the Iconify Addon installed.

Usage

You just add a Tab field wherever you want to start a new tab.

All the fields that comes after it (and that are not an other tab field) will end up in that tab.

Screenshot of the blueprint editing with added tabs

Possible improvements

  • Show if there are validation errors on a field inside a tab
  • Nested tabs?!
  • Improve accessibility, keyboard navigation etc.

License

The MIT License (MIT). Please see License File for more information.

statamic-tabs's People

Contributors

eminos avatar jellekomma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jellegroenendal

statamic-tabs's Issues

Visual glitch when adding new sets

Each time I add a new set containing tabs I get this glitch:
image

Note that:

  • button has no icon and the words 'BG Image' appear at the bottom (one my tab labels)
  • Clicking the button does nothing.
  • If I click a tab or add another set it goes back to normal (shown below)

image

Thanks!

Adding instructions produces a weird display

I just tried adding instructions to a tab and got this:
image

The 'Test' instruction appears no matter what tab is selected.

Thanks and nice package! I wish it was part of the core!

Styling of tabs

Hi @eminos,

Thanks for publishing the plugin, very handy :) One question regarding the styling: Do you think you could add a class to the tabs container? This would nice to style the tabs different from the main tabs (e.g. smaller, align right โ€ฆ). Thanks for your thoughts on this. (Edit: This can be achieved with nested styles, and maybe would not get much easier. So I am closing this now :)

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.