Hi Brendon,

I've worked on a card component with Adam Cox that automatically fills in 
the current django username on a text node in form view. I would think that 
parts of the knockout would be somewhat similar (but you wouldn't have to 
do the additional check of getting the variable from the django template). 
We opted to modify the default text widget rather than create a new 
component because of concerns regarding editing the resource model 
midstream, but you could just do this as a custom and not have to do the 
additional node.id check that we had to.

The repo is at https://github.com/legiongis/fpan  and the files with 
relevant code would be:

   - media/js/views/components/widgets/text.js 
   - templates/views/components/widgets/text.htm
   - 
   - templates/views/components/cards/default.htm

I found the google extension "Knockoutjs context debugger" to be really 
helpful during this.

Hope this helps,
Angela


On Thursday, April 9, 2020 at 9:44:57 AM UTC-4, Brendon Bangert wrote:
>
> Dear Arches Developers,
>
> I am posting today hoping everyone Is doing well in our global time of 
> crisis. Working remotely has given me more time to pursue our current 
> team's database and with this a closer inspection and custom card 
> components. Concerning a previous forum post I had created and with no 
> immediate access to a in-house programmer, our team is currently wondering 
> if anyone else has created any custom card components they would be 
> interested in sharing. Additionally I wanted to start up the conversation 
> of the possibility of creating a card component that enables for 
> information to appear if, an certain option is selected from a concept 
> list. Feel free to post thoughts, or interests in similar customization 
> your team is looking for. I wanted to not only get this dialogue started 
> but all in all see if anyone else has been seeking something similar.
>
> Cheers,
> Brendon
>

-- 
-- To post, send email to archesproject@googlegroups.com. To unsubscribe, send 
email to archesproject+unsubscr...@googlegroups.com. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to archesproject+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/archesproject/d3eb8584-f1ed-4705-a46a-a774d506fdf6%40googlegroups.com.

Reply via email to