Open AlphaJuliettOmega opened 8 years ago
reading up on this issue https://github.com/tepi/FilteringTable/issues/79 made me realize i'll have to add a GeneratedProperty for my jpa parts so i'll look into that some more but after I add a custom property, the problem is coding in the right place for the filtering to happen :grey_question: to add the correct data to my container I will use deviceContainer.getContainerProperty().setValue(custom prop); if i set the prop as an int from 0-6 how do i filter that and offer a dropdown with string labels for the 0-6 ints?
Is there any wiki or API documentation? I want to create some custom filters for Label columns and Jpa entity Columns,
I wouldn't mind helping build this wiki.
for starters; what are these two functions for?
public Container.Filter generateFilter(Object propertyId, Field<?> originatingField) { }
public AbstractField<?> getCustomFilterComponent(Object propertyId) { }
and this function:
public Filter generateFilter(Object propertyId, Object value) { }
can i use this one to filter my objects how i want? is propertyId always just the name of the column or an object containing other information?The filteringTable works really well with Timestamps but if i wanted to add support for Time filtering, would i do it in this function?
public String getDateFormatPattern(Object propertyId) { }
what is the syntax for makiing a DateFormatPattern?How would I add a Dropdown with options to filter my
filterTable.addGeneratedColumn("state", new CustomTable.ColumnGenerator() {creates a label} ?
thanks for this slick addon