fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
michael zhou 2021-04-03T01:09:20.314500Z

Trying to use fulcro-rad to make a report. Is there a easy way to do a report like this that can multiselect rows and batch delete them?

michael zhou 2021-04-03T01:10:13.314600Z

michael zhou 2021-04-03T01:11:10.315400Z

this table/report is very common in realworld.

tony.kay 2021-04-03T03:18:36.315500Z

Rad is more about the shape of thing vs. the specific features. There are escape hatches built in everywhere, and at the core you can take control of the rendering just by providing a body or a custom render type. Such a thing requires you understand Fulcro. You're actually very close to the "metal" in RAD, so yes, what you seek is doable, but there is no presupplied option for it. I think you could probably do it pretty simply with just a custom control, actually.

❤️ 1
michael zhou 2021-04-03T03:50:19.316900Z

Thanks a lot. RAD is very powerful. Is there a beginner custom tutorial for custom report controls.

Jakub Holý 2021-04-03T08:12:33.322Z

I don't think so. But if you are learning this, maybe you could write one afterwards? 🙏

tony.kay 2021-04-03T13:48:45.323700Z

sorry, have not had the time, and it is probably nearly impossible for beginners that do not understand Fulcro. The amount of code you need to write to do the thing you want is relatively small I think, but you’ll have to understand: • How the built-in state machine for reports works (paginates, in particular) • How to add a custom attribute to your report row query, so you can deal with the checkbox state • How to add a custom row renderer so you can render your UI-only checkbox the way you • Mutations and UISM: so you can make the control modify the props of the rows. It might actually make sense to make a derived state machine for this kind of report since you’re so close to the state of the report itself, and you likely want to add actions that affect this state once you’ve checked them. The best we’ve got for beginners is the rad demo, which shows almost everything that is currently supported by “options” in one screen or another. I talk a bit about more stuff in various videos on YouTube

👍 1
tony.kay 2021-04-03T13:48:52.323900Z

but it is rather light right now

michael zhou 2021-04-03T14:19:55.326200Z

@tony.kay thank you for your great work! I need to learn fulcro well first

michael zhou 2021-04-03T03:50:41.317Z

michael zhou 2021-04-03T04:01:39.318500Z

I am doing some expreiments before considering rad into realworld project.Found some issues as a beginner. sorry.

michael zhou 2021-04-03T04:02:37.318600Z

michael zhou 2021-04-03T04:03:05.318900Z

michael zhou 2021-04-03T04:06:00.321800Z

1、how to easily custom form buttons in other language such as chinese 2、Is there a way to display such date “YYYY-MM-DD” in ao/dateformat in report list? 3、custome report like above question thanks for the help or tips.

Jakub Holý 2021-04-03T08:16:15.322200Z

What Tony wrote above. If the built in features are not enough, use the extension points. Eg copy the default semantic UI rendering "plugin" and modify it to your heart's content. RAD does not intend to provide all possible features, only a great, flexible base upon which to built them.

michael zhou 2021-04-03T12:41:14.323300Z

Thank you. I see.