Jump to content

stack Item


LoveHate
 Share

Recommended Posts

hi

I wanna add an option in my plugin so I need to use a field like below:

Untitled.png.376876a8464d7a8d4bf60de485254a22.png.e05212bec3c796f14c74d5d733082caf.png

I know this is a stack Item:

$form->add( new \IPS\Helpers\Form\Stack()

 

but there is no documents on invision.

can someone help me to how to use that?

Edited by LoveHate
Link to comment
Share on other sites

Hello, you can see examples in the code:

$form->add( new \IPS\Helpers\Form\Stack( 'site_social_profiles', \IPS\Settings::i()->site_social_profiles ? json_decode( \IPS\Settings::i()->site_social_profiles, true ) : array(), FALSE, array( 'stackFieldType' => '\IPS\core\Form\SocialProfiles', 'maxItems' => 50, 'key' => array( 'placeholder' => 'http://example.com', 'size' => 20 ) ) ) );

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using our site you agree to our Privacy Policy