Arash Ranjbar Posted November 30, 2022 Share Posted November 30, 2022 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? When Love is real it finds away Link to comment Share on other sites More sharing options...
Manager Solution DawPi Posted December 2, 2022 Manager Solution Share Posted December 2, 2022 Yeah, there is no docs unfortunatelly, but good and ambitious coder learn code by checking the source of the files. 1 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu. Link to comment Share on other sites More sharing options...
Arash Ranjbar Posted December 2, 2022 Author Share Posted December 2, 2022 11 minutes ago, DawPi said: Yeah, there is no docs unfortunatelly, but good and ambitious coder learn code by checking the source of the files. I find this example: $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 ) ) ) ); When Love is real it finds away Link to comment Share on other sites More sharing options...
Manager DawPi Posted December 2, 2022 Manager Share Posted December 2, 2022 intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now