Polygrid Widget – in the Spotlight
With the launch of the Summer MegaBundle you may have noticed quite a few new widgets appear that you’ve not seen before. Over the coming weeks we are going to shine the spotlight on those widgets to allow you to see what they are and what they can bring to your development.
In the Spotlight today we have the new Polygrid widget brought to you by LiveCode Ltd. This widget was recently acquired by LiveCode and is the perfect widget for developers who want to display data in a simple and modern way. With Polygrid you can quickly create beautiful tables with native scrollbar managed by the widget itself for all platforms supported by LiveCode, ensuring optimal performance. Scrollbar support for all platforms means your data is always easily accessible, regardless of device or screen size
When displaying data with Polygrid we have two properties.
1. text (or pgText) – The content of this property must be text equivalent to a table, where each line is a row and each tab delimits the columns.
2.pgData – This property must have the same format used in the Datagrid control (pArray [RowNumber] [ColumnName] [Content ]), the array elements within each [ColumnName] will be assigned to the column with the corresponding name in the PolyGrid control.
Polygrid is packed full of features including…
- Independent data type content for each column
- Support for 8 types of data:
- Text
- Multi-line text
- Self-incremental
- Number
- Color
- Icon (svg)
- Boolean
- Image
- Integrated scrolling handling for desktop and mobile platforms.
- Highly customisable.
- Support to use a variety of ways included as a popup (useful to build custom menus)
- Extensive integration with mouse events
- Column resizing capabilities
- Moving columns
- Direct cell editing
- Simpler to use than DataGrid
- Improved performance compared to fields and data grids
You can also completely customise the Polygrid widgets appearance through LiveCode’s property Inspector.
The Polygrid widget comes with ready made built in templates and fully functioning examples stacks to make it easy for you to dive in and get started.
Polygrid, we may be biased but we think it looks pretty darn good in the spotlight! We’ve included this new widget completely free ($99 value) in the Summer Mega Bundle.
8 comments
Join the conversationTom Glod - June 16, 2022
This looks great, can this be purchased outside of the bundle?
Steven Crighton - June 16, 2022
Hi Tom. At present this widget is not available outside of the MegaBundle.
andy - June 17, 2022
It is indeed a nice widget! However the one I really want is a “share” widget which when clicked will display the standard Android or iOS share UI to allow the user to share any content (text, link, photo, audio, video). If this widget is available individually or in the bundle, I will buy it instantly. Anyone knows if it is already available anywhere?
Paul Richards - June 17, 2022
I don’t need the mega bundle, but would certainly purchase this widget – along with a few others in the bundle especially super button. Hopefully they will all be for sale soon
Matthias Rebbe - June 17, 2022
I was in the same situation your are. I was really interested in the PolyGrid, but also EmlParseLibrary, Wordout,WordReport and WordLib. That would have been 385,-, so i decided to get the Bundle and use the Voucher to extend my current subscription, which would have been renewed 2023 anyway. So for me the Bundle was a bargain.
Stam Kapetanakis - June 20, 2022
Same here – I was interested in a few addons that would amount to a few hundred… as the bundled coupon can be used to renew subs i went with that in the end as i reckon it will save me money going forward (as i’m fairly locked into LC now 😉
Mark - March 28, 2023
How do you script column alignment in the PolyGrid widget?
Heather Laine - March 30, 2023
To do this, you need to put the property pgColumns into a variable, then iterate over the array to modify the ‘contentAlignment’ (or ‘headerAlignment’) key of each element of the array and then set the pgColumns property to this variable. See the pgColumns property in the dictionary for the names of all keys.