LoveHate 0 Posted December 1, 2022 Report Share Posted December 1, 2022 (edited) hi I wanna add an option in my plugin so I need to use a field like below: 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 December 1, 2022 by LoveHate Обратиться Quote Link to comment Share on other sites More sharing options...
Кирилл 170 Posted December 1, 2022 Report Share Posted December 1, 2022 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 ) ) ) ); 1 Обратиться Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.