Giter Site home page Giter Site logo

Comments (18)

bfintal avatar bfintal commented on August 9, 2024

I like this new Repeatable option. I'm also creating a theme now and I've just stumbled upon the need to create fields for inputting social icons for a footer. The Repeatable option would be the answer to this.

Perhaps the syntax for this can be:

$panel->createOption( array(
    'type' => 'repeatable',
    'id' => 'my_repeatable',
    'options' => array(
        array( ... ), // option parameters, like the array you pass to a createOption call,
        array( ... ), // each one is a new option in the group
        array( ... ),
    ),
) )

Then doing a getOption would give you a multi-dimensional array of the grouped values

What do you think?

I think though that we should still do #10 for simpler options that can just sort items and enable/disable items.

from titan-framework.

ardalann avatar ardalann commented on August 9, 2024

Yeah that's exactly what I had in my mind.
We also need settings such as:
addable (bool)
removable (bool)
sortable (bool)

Yes you're right. #10 should be separate.

from titan-framework.

MickeyKay avatar MickeyKay commented on August 9, 2024

Any update on this one? I'm in desperate need of some repeatable options for a plugin I'm working on in which the user needs to be able to add/remove inputs. Furthermore, they would ideally be able to add/remove groups of inputs, since each repeatable item consists of two inputs (e.g. width and height). Any ideas?

from titan-framework.

bfintal avatar bfintal commented on August 9, 2024

Sorry Mickey, quite busy now and unfortunately can't do any Titan
development. Hopefully in 1-2 weeks I can allot some time for Titan :(

from titan-framework.

MickeyKay avatar MickeyKay commented on August 9, 2024

Checking in again :) This is definitely the number one feature request on my end right now. Repeatable options and option groups is a MUST for me. I'm trying to figure out which framework to base our theme/plugin work on moving forward, and this is really the most important factor right now. Any word?

Thanks Ben!

from titan-framework.

fa7ad avatar fa7ad commented on August 9, 2024

BUMP!!
Any update on this?

from titan-framework.

IzaacJ avatar IzaacJ commented on August 9, 2024

BUMP ! Update on this please. Migrating from Redux to Titan, due to some features, but missing a repeatable (that I actually made myself for redux through extentions). Might build one myself and make a pull request.

from titan-framework.

nickkuijpers avatar nickkuijpers commented on August 9, 2024

Bump ;( I'm using unyson.io untill this has been created..

from titan-framework.

emilsgulbis avatar emilsgulbis commented on August 9, 2024

Bump

from titan-framework.

 avatar commented on August 9, 2024

One of the most critical field types. Bump.

from titan-framework.

hellor0bot avatar hellor0bot commented on August 9, 2024

Would be an awesome feature. Any time to implement it?

from titan-framework.

otjutt avatar otjutt commented on August 9, 2024

Bump

from titan-framework.

aManNamedJed avatar aManNamedJed commented on August 9, 2024

Bump -- this would be great!

from titan-framework.

sasimon avatar sasimon commented on August 9, 2024

In my research, the idea that "repeat" should be an option is a misconception. When implemented as an option, it leads to requiring one or more of the field. The correct cardinality of any repeater not marked "required" is ZERO or more. The more successful repeaters are implemented as classes, for they can store their code as variables even when the length of the repeater is equal to zero.

from titan-framework.

andrastudio avatar andrastudio commented on August 9, 2024

Any update on this feature?
Would love to see this in Titan but last commit was 8 months ago.

from titan-framework.

Sotiris-k avatar Sotiris-k commented on August 9, 2024

Bump for this great feature.

from titan-framework.

vladbndko avatar vladbndko commented on August 9, 2024

Bump

from titan-framework.

 avatar commented on August 9, 2024

Bump.
Currently they are busy for big... LOL

from titan-framework.

Related Issues (20)

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.