pavankataria / SwiftDataTables

A Swift Data Table package, display grid-like data sets in a nicely formatted table for iOS. Subclassing UICollectionView that allows ordering, and searching with extensible options.
MIT License
448 stars 69 forks source link

how to link generate in every row of swift dataTables #11

Closed NupendraVerma closed 6 years ago

NupendraVerma commented 6 years ago

how to generate link in each row of data table and I want to remove search bar in the data table how??

pavankataria commented 6 years ago

Hey there, this would require the api allowing custom cells to be returned, and then you could add your link in the form of an attributed text with appropriate openApp url handling.

I'm a bit tied up atm, but a PR is totally welcomed :)

pavankataria commented 6 years ago

I want to remove search bar in the data table how?? 🎉 🎉 @NupendraVerma This is now available as of version 0.6.22 🎉 🎉 https://github.com/pavankataria/SwiftDataTables/releases/tag/0.6.22

Set the shouldShowSearchSection property to false in the DataTableConfiguration file and inject that into your data table initialiser and you're good to go. The search view will not be added.

You can also opt to the use the new delegate method and return false to achieve the same thing.

@objc optional func shouldShowSearchSection(in dataTable: SwiftDataTable) -> Bool

Let me know how it goes. 🎉