create section content at runtime

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

create section content at runtime

choirul anam
Dear All,

This code is from TDJ example (the MainContent.mxml)

    <j:ApplicationMainContent localId="main" hasTopAppBar="true"
hasFooterBar="true" selectedContent = "welcome_panel">
        <local:WelcomeSection name="welcome_panel"/>
        <local:AlertPlayGround name="alert_panel"/>
        <local:ButtonPlayGround name="button_panel"/>
        <local:ImagePlayGround name="image_panel"/>
        <local:NumericStepperPlayGround name="numericstepper_panel"/>
        <local:DateComponentsPlayGround name="datecomponents_panel"/>
        <local:ComboBoxPlayGround name="combobox_panel"/>
        <local:CheckBoxPlayGround name="checkbox_panel"/>
        <local:MiscelaneaPlayGound name="miscelanea_panel"/>
        <local:HeadingsAndText name="text_panel"/>
        <local:LabelPlayGround name="label_panel"/>
        <local:ListPlayGround name="list_panel"/>
        <local:RadioButtonPlayGround name="radiobutton_panel"/>
        <local:SliderPlayGround name="slider_panel"/>
        <local:TextInputPlayGround name="textinput_panel"/>
        <local:GridPlayGround name="grid_panel"/>
        <local:CardPlayGround name="card_panel"/>
        <local:TablePlayGround name="tables_panel"/>
        <local:FormsValidationPlayGround name="form_validation_panel"/>
        <local:DropDownListPlayGround name="dropdownlist_panel"/>
        <local:SnackbarPlayGround name="snackbar_panel"/>
        <local:TabBarPlayGround name="tabbar_panel"/>
        <local:ViewStatesPlayGround name="viewstates_panel"/>
        <local:LayoutsPlayGround name="layouts_panel"/>
        <local:WizardPlayGround name="wizards_panel"/>
        <local:PopUpPlayGround name="popup_panel"/>
    </j:ApplicationMainContent>


How if we want to create / add the section content at runtime ?
Please help.




--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: create section content at runtime

choirul anam

On Mon, May 27, 2019 at 3:48 PM choirul anam <[hidden email]> wrote:
Dear All,

This code is from TDJ example (the MainContent.mxml)

    <j:ApplicationMainContent localId="main" hasTopAppBar="true"
hasFooterBar="true" selectedContent = "welcome_panel">
        <local:WelcomeSection name="welcome_panel"/>
        <local:AlertPlayGround name="alert_panel"/>
        <local:ButtonPlayGround name="button_panel"/>
        <local:ImagePlayGround name="image_panel"/>
        <local:NumericStepperPlayGround name="numericstepper_panel"/>
        <local:DateComponentsPlayGround name="datecomponents_panel"/>
        <local:ComboBoxPlayGround name="combobox_panel"/>
        <local:CheckBoxPlayGround name="checkbox_panel"/>
        <local:MiscelaneaPlayGound name="miscelanea_panel"/>
        <local:HeadingsAndText name="text_panel"/>
        <local:LabelPlayGround name="label_panel"/>
        <local:ListPlayGround name="list_panel"/>
        <local:RadioButtonPlayGround name="radiobutton_panel"/>
        <local:SliderPlayGround name="slider_panel"/>
        <local:TextInputPlayGround name="textinput_panel"/>
        <local:GridPlayGround name="grid_panel"/>
        <local:CardPlayGround name="card_panel"/>
        <local:TablePlayGround name="tables_panel"/>
        <local:FormsValidationPlayGround name="form_validation_panel"/>
        <local:DropDownListPlayGround name="dropdownlist_panel"/>
        <local:SnackbarPlayGround name="snackbar_panel"/>
        <local:TabBarPlayGround name="tabbar_panel"/>
        <local:ViewStatesPlayGround name="viewstates_panel"/>
        <local:LayoutsPlayGround name="layouts_panel"/>
        <local:WizardPlayGround name="wizards_panel"/>
        <local:PopUpPlayGround name="popup_panel"/>
    </j:ApplicationMainContent>


How if we want to create / add the section content at runtime ?
Please help.




--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: create section content at runtime

Piotr Zarzycki
Hi Choirul,

The question is - did you try do that dynamically ? Cause I bet some of us could take a time and figure out how to do that, but I think it won't be beneficial to you if we resolve each of your problems. Please try yourself and get back with specific issue - you will learn much more going by that path.

Thanks,
Piotr

pon., 27 maj 2019 o 11:29 ichsan anam <[hidden email]> napisał(a):

On Mon, May 27, 2019 at 3:48 PM choirul anam <[hidden email]> wrote:
Dear All,

This code is from TDJ example (the MainContent.mxml)

    <j:ApplicationMainContent localId="main" hasTopAppBar="true"
hasFooterBar="true" selectedContent = "welcome_panel">
        <local:WelcomeSection name="welcome_panel"/>
        <local:AlertPlayGround name="alert_panel"/>
        <local:ButtonPlayGround name="button_panel"/>
        <local:ImagePlayGround name="image_panel"/>
        <local:NumericStepperPlayGround name="numericstepper_panel"/>
        <local:DateComponentsPlayGround name="datecomponents_panel"/>
        <local:ComboBoxPlayGround name="combobox_panel"/>
        <local:CheckBoxPlayGround name="checkbox_panel"/>
        <local:MiscelaneaPlayGound name="miscelanea_panel"/>
        <local:HeadingsAndText name="text_panel"/>
        <local:LabelPlayGround name="label_panel"/>
        <local:ListPlayGround name="list_panel"/>
        <local:RadioButtonPlayGround name="radiobutton_panel"/>
        <local:SliderPlayGround name="slider_panel"/>
        <local:TextInputPlayGround name="textinput_panel"/>
        <local:GridPlayGround name="grid_panel"/>
        <local:CardPlayGround name="card_panel"/>
        <local:TablePlayGround name="tables_panel"/>
        <local:FormsValidationPlayGround name="form_validation_panel"/>
        <local:DropDownListPlayGround name="dropdownlist_panel"/>
        <local:SnackbarPlayGround name="snackbar_panel"/>
        <local:TabBarPlayGround name="tabbar_panel"/>
        <local:ViewStatesPlayGround name="viewstates_panel"/>
        <local:LayoutsPlayGround name="layouts_panel"/>
        <local:WizardPlayGround name="wizards_panel"/>
        <local:PopUpPlayGround name="popup_panel"/>
    </j:ApplicationMainContent>


How if we want to create / add the section content at runtime ?
Please help.




--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: create section content at runtime

Carlos Rovira-2
Hi,

sorry Piotr, I didn't saw your response and already responded in SOF :_|

@choirul, please, review your answers in SOF, and check the right one as correct (green check), in this way we make it more clear for coming people :)

thanks!

El lun., 27 may. 2019 a las 12:15, Piotr Zarzycki (<[hidden email]>) escribió:
Hi Choirul,

The question is - did you try do that dynamically ? Cause I bet some of us could take a time and figure out how to do that, but I think it won't be beneficial to you if we resolve each of your problems. Please try yourself and get back with specific issue - you will learn much more going by that path.

Thanks,
Piotr

pon., 27 maj 2019 o 11:29 ichsan anam <[hidden email]> napisał(a):

On Mon, May 27, 2019 at 3:48 PM choirul anam <[hidden email]> wrote:
Dear All,

This code is from TDJ example (the MainContent.mxml)

    <j:ApplicationMainContent localId="main" hasTopAppBar="true"
hasFooterBar="true" selectedContent = "welcome_panel">
        <local:WelcomeSection name="welcome_panel"/>
        <local:AlertPlayGround name="alert_panel"/>
        <local:ButtonPlayGround name="button_panel"/>
        <local:ImagePlayGround name="image_panel"/>
        <local:NumericStepperPlayGround name="numericstepper_panel"/>
        <local:DateComponentsPlayGround name="datecomponents_panel"/>
        <local:ComboBoxPlayGround name="combobox_panel"/>
        <local:CheckBoxPlayGround name="checkbox_panel"/>
        <local:MiscelaneaPlayGound name="miscelanea_panel"/>
        <local:HeadingsAndText name="text_panel"/>
        <local:LabelPlayGround name="label_panel"/>
        <local:ListPlayGround name="list_panel"/>
        <local:RadioButtonPlayGround name="radiobutton_panel"/>
        <local:SliderPlayGround name="slider_panel"/>
        <local:TextInputPlayGround name="textinput_panel"/>
        <local:GridPlayGround name="grid_panel"/>
        <local:CardPlayGround name="card_panel"/>
        <local:TablePlayGround name="tables_panel"/>
        <local:FormsValidationPlayGround name="form_validation_panel"/>
        <local:DropDownListPlayGround name="dropdownlist_panel"/>
        <local:SnackbarPlayGround name="snackbar_panel"/>
        <local:TabBarPlayGround name="tabbar_panel"/>
        <local:ViewStatesPlayGround name="viewstates_panel"/>
        <local:LayoutsPlayGround name="layouts_panel"/>
        <local:WizardPlayGround name="wizards_panel"/>
        <local:PopUpPlayGround name="popup_panel"/>
    </j:ApplicationMainContent>


How if we want to create / add the section content at runtime ?
Please help.




--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--
Reply | Threaded
Open this post in threaded view
|

Re: create section content at runtime

Piotr Zarzycki
No problem Carlos. I think it's time to do not give always full answer and spend hours on resolving others issue. We have lot's of examples - sometimes it's enough to search. There is another question on SOF, which I bet I would after couple of hours digging resolve, but I believe this is not always the way in case of helping.

pon., 27 maj 2019 o 17:53 Carlos Rovira <[hidden email]> napisał(a):
Hi,

sorry Piotr, I didn't saw your response and already responded in SOF :_|

@choirul, please, review your answers in SOF, and check the right one as correct (green check), in this way we make it more clear for coming people :)

thanks!

El lun., 27 may. 2019 a las 12:15, Piotr Zarzycki (<[hidden email]>) escribió:
Hi Choirul,

The question is - did you try do that dynamically ? Cause I bet some of us could take a time and figure out how to do that, but I think it won't be beneficial to you if we resolve each of your problems. Please try yourself and get back with specific issue - you will learn much more going by that path.

Thanks,
Piotr

pon., 27 maj 2019 o 11:29 ichsan anam <[hidden email]> napisał(a):

On Mon, May 27, 2019 at 3:48 PM choirul anam <[hidden email]> wrote:
Dear All,

This code is from TDJ example (the MainContent.mxml)

    <j:ApplicationMainContent localId="main" hasTopAppBar="true"
hasFooterBar="true" selectedContent = "welcome_panel">
        <local:WelcomeSection name="welcome_panel"/>
        <local:AlertPlayGround name="alert_panel"/>
        <local:ButtonPlayGround name="button_panel"/>
        <local:ImagePlayGround name="image_panel"/>
        <local:NumericStepperPlayGround name="numericstepper_panel"/>
        <local:DateComponentsPlayGround name="datecomponents_panel"/>
        <local:ComboBoxPlayGround name="combobox_panel"/>
        <local:CheckBoxPlayGround name="checkbox_panel"/>
        <local:MiscelaneaPlayGound name="miscelanea_panel"/>
        <local:HeadingsAndText name="text_panel"/>
        <local:LabelPlayGround name="label_panel"/>
        <local:ListPlayGround name="list_panel"/>
        <local:RadioButtonPlayGround name="radiobutton_panel"/>
        <local:SliderPlayGround name="slider_panel"/>
        <local:TextInputPlayGround name="textinput_panel"/>
        <local:GridPlayGround name="grid_panel"/>
        <local:CardPlayGround name="card_panel"/>
        <local:TablePlayGround name="tables_panel"/>
        <local:FormsValidationPlayGround name="form_validation_panel"/>
        <local:DropDownListPlayGround name="dropdownlist_panel"/>
        <local:SnackbarPlayGround name="snackbar_panel"/>
        <local:TabBarPlayGround name="tabbar_panel"/>
        <local:ViewStatesPlayGround name="viewstates_panel"/>
        <local:LayoutsPlayGround name="layouts_panel"/>
        <local:WizardPlayGround name="wizards_panel"/>
        <local:PopUpPlayGround name="popup_panel"/>
    </j:ApplicationMainContent>


How if we want to create / add the section content at runtime ?
Please help.




--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki



--


--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki