Himanshu
Posts: 0
Joined: Mon Mar 31, 2014 9:46 am

Custom Control for the Sliding Menu Items.

Hi Team,

I created the sliding "Menu Item Panel" with some java-script code.
And that Menu-Item list was showing in following structure..

"mobilegrid_1 / mobilegridcell_1 / mobilelist_1 / mobilelistitem_1"

With the help of two custom java-script files MenuProvide and SlideMenu, we are able to slide the page and show the menu items.

And On Page-Load this javaScript code runs SlideMenu.js file

SlideMenu( Appery("mobilegrid_1"), Appery("mobilecontainer") );

But as I would need this menuItem in all of my pages in my app (10 pages), then I created "mobilegrid_1 / mobilegridcell_1 / mobilelist_1 / mobilelistitem_1" to a CustomControl.

And then changed in the java-script code to slide it as

SlideMenu( Appery("CustomControl_Name"), Appery("mobilecontainer") );

But now its not working. While debugging I didn't get much helpful.

Please help me.

Thanks.

Himanshu
Posts: 0
Joined: Mon Mar 31, 2014 9:46 am

Custom Control for the Sliding Menu Items.

I caught the issue.. instead to

SlideMenu( Appery("CustomControl_Name"), Appery("mobilecontainer") );

I have to put the CustomcontrolName for that page.

SlideMenu( Appery("CustomControl_Name_14"), Appery("mobilecontainer") );

....

But when I just wanted to map my service response, then I didn't find list-Item type for this page but just got a CustomControl and a property "Visible".. how to bind Array-Response to the CustomControl?

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Custom Control for the Sliding Menu Items.

Hello,

You can export some properties from your custom components. Here is the link: http://docs.appery.io/documentation/b...

Himanshu
Posts: 0
Joined: Mon Mar 31, 2014 9:46 am

Custom Control for the Sliding Menu Items.

Thanks Nikita...

But I am not able to add that type of list-Item, which could be use as response for Array Items. Because I think Custom Component doesn't support Array type option.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Custom Control for the Sliding Menu Items.

Hi Himanshu.

Unfortunatly, currently, you can't to access directly inner controls inside the custom control.

Only with export properties. This mechanism currently does not export controls directly. It could export only properties for inner controls.

If you want to make a mapping from response to the control(not to a control property) you can use a bit workaround:

1 Open page where your custom control.

2 Activate this custom control by click on it.

3 Custom control properties side bar will appear.

4 Click on "Break Apart Custom Component". http://prntscr.com/3fycfq/direct

But note, if you use this way, your custom control will transformed to inner controls which is custom control consists of.

That is why editing in custom control couldn't be applied to this inner controls from this time.

Regards.

Return to “Issues”