This is not replacing all the behaviour that you've done in this video, but, one nice way to implement the "View type" buttons is, instead of having 2 radio inputs to have two button with the same name and a different value with a type of submit, in that way you will submit the form when you change it but need to do custom styling on the server for the active one: request('view-type') === 'list']) value="list"> List request('view-type') === 'list']) value="grid"> Grid This will bring the same functionality and 0 javascript needed
2 ปีที่แล้ว +1
Pretty cool stuff! I was looking for that for days! Many thanks Tony!
This is not replacing all the behaviour that you've done in this video, but, one nice way to implement the "View type" buttons is, instead of having 2 radio inputs to have two button with the same name and a different value with a type of submit, in that way you will submit the form when you change it but need to do custom styling on the server for the active one:
request('view-type') === 'list']) value="list">
List
request('view-type') === 'list']) value="grid">
Grid
This will bring the same functionality and 0 javascript needed
Pretty cool stuff! I was looking for that for days!
Many thanks Tony!
Cool stuff. Thanks for share. 👍👍
Can you please tell me the name of the vscode font
It's Monolisa