View Full Version : best Ext object for links

6 Jun 2008, 6:25 AM
If I have tabular data, I can use something like XTemplate to render it into a list of links. What would be the best way to create an actual link? Specifically, I want to create a mute anchor that, onClick, tells another panel in a viewport to refresh with a different baseParam. In an HTML world, I would write out each anchor with a blank href, and define an onClick with a hardcoded argument. What would be the comparable way to use Ext?

6 Jun 2008, 7:45 AM
I really dislike using links for anything other than site navigation, and since typical web apps dont do site navigation i rarely use them at all. For tabular data, I really prefer to put it in a grid, and then use something like Saki's rowActions plugin to add small icons that can be clicked to performa a task.
For non-tabular data uses, Ext.Buttons usually get the job done.