Andreas Kling
f9b8a18fae
GJsonArrayModel: Add hook for customizing the GModel::Role::Custom data
2019-08-14 20:30:18 +02:00
Andreas Kling
69ec08774b
GJsonArrayModel: Add hook to customize what comes out of GModel::Sort
...
Now you can provide a massage_for_sort hook in your FieldSpec.
This allows you to implement arbitrary sorting rules for the data.
2019-08-12 11:54:18 +02:00
Andreas Kling
afd25679bc
GJsonArrayModel: Support fields that aren't tied to a single JSON value
...
Change the custom data massaging callback to take a const JsonObject&.
This will allow binding together data from multiple fields into one
output in the model. :^)
2019-08-10 15:06:29 +02:00
Andreas Kling
078ce97c41
GJsonArrayModel: Add an optional "massage_for_display" fieldspec hook
...
This allows to you install a custom callback that can do anything with
Role::Display data before it's returned by GJsonArrayModel::data().
2019-08-10 11:06:29 +02:00
Andreas Kling
6e50631e35
LibGUI: Add GJsonArrayModel, a simple JSON-data-file-as-GModel helper
...
This makes it very easy to expose JSON files as GModels. :^)
2019-08-10 10:29:46 +02:00