I have the following layout to my code
However when I hit Delete it does not delete the Table Header View. Is there a way to do this? I have been unable to find out how and there is very little on how to create a GUI from pure code without using IB.
Found out a work around in trying to make a Sidebar like in Finder I first used NSOutlineView however if you use NSSourceList it is without the table header.
Related
In my project, I need to create a list of feeds, something like:
I think to create a XAML content view, but how can use it as a cell?
Is it a good approach?
I think the best way to go is to choose Data Template Selector. If you use Data Template Selector, You can Choose a DataTemplate (view) at runtime based on the value of a data-bound property. Lets say, In your case, your List view might have 3/4 or any number of different kind of ViewCell. Based on the type of cell you want to display different view cell.
There is a nice tutorial on Xamarin doc, you can read at https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/templates/data-templates/selector
Read this one after that (this is a example for Chat App using ViewCell) https://blog.xamarin.com/customizing-list-view-cells-xamarin-forms-datatemplateselector/
Let me know if you need any specific help after reading that.
This seems like it should not be that hard but I am trying to figure out how to create a 'snapshot' or 'locked' view from one on my views. This view currently is dynamic but I want to lock it so that any changes I make will not propagate until I want them too.
This would be a front facing page that should not get updated until I choose to update it such as by timestamping a field like updated_lock or something to that effect.
Any ideas?
Thanks,
BR
You might try caches_action in your controller. It will create the static version and save it. You could either create it in dev and checkin, or have it generated in production. You'd need to fine a way to delete it in production if it's not checked in. Requires caching to be turned on.
If you are OK with checking it in - you can always save from the browser.
Basically - if there is a file in public at the same location as the view, it will be served instead of the dynamic one.
I'm newbie in CakePHP and I have a few questions.
I'm trying to set up my first CakePHP website, and I want to display menu with links in my layout. I've created model called MenuItem, then I've created controller "MenuItemsController" and then a function show. When I access /menuitems/show/ all my links are displayed. So here's the problem. I want do call this controller in my layout so links will be visible on every subpage. First question is how to call this controller, and second how will output look like ? Do I have to create view for this cotroller if I don't want to use /menuitems/show/ or it's okay to set controller to output just array of data ?
Thank you!
First question is how to call this controller, and second how will output look like ?
Use requestAction() to request the data from the view OR better, set it based on the page you're on in your AppController::beforeFfilter() method.
In your layout simply use an element $this->element('menu'); and use the set data in it or, if you go for requestAction() do this call inside the element, you can even cache the element.
Read the links to the CakePHP book in the text, the book contains example code as well.
In my Sencha Touch 2 application I have an HTML table in a view which has its ID. What I'm trying to do is do some actions, load store, create another table and append it to the existing table - without changing the view. I have no problems with making the request, creating the second table on the fly, etc, however I need to figure out how one table can be appended to another in terms of Sencha Touch? Is there an "appendTo()" function like, say, jQuery has and how can I use it? I basically need to get the table by its ID and append the new table to it. But don't know how to do that in Sencha Touch 2. Any help is greatly appreciated.
Thank you.
It depends what your view extends but if it's extending an xtype:panel then you can use getHtml() to get the existing content and then setHtml() to update it.
I am trying to fill a table using an internal table. Table is being filled perfectly but I can see the first something rows of the table, the rest is not seen because there is no scroll bar.
Anyone who knows to enable it ?
Yes there is a way where you can enable the scroll bar in a table by using the table controls.I would like to share a link from SAP help which demonstrates this.
Table Controls:Scrolling