Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Help, what does “:data-value” in html templates mean? #970

Open
SouthMemory opened this issue May 11, 2021 · 3 comments
Open

Help, what does “:data-value” in html templates mean? #970

SouthMemory opened this issue May 11, 2021 · 3 comments

Comments

@SouthMemory
Copy link

SouthMemory commented May 11, 2021

I was learning django

I can not understand
1、how @binux managed to update task status dynamically, by ajax polling or websocket?
2、what is the use of ":data-value" in template "index.html" ? for example :
<td v-for="type in '5m,1h,1d,all'.split(',')" class="project-progress progress-{{* type }}" :title="project.progress[type].title" :data-value="project.progress[type].task">

Thanks anyone if you can give some tips

@binux
Copy link
Owner

binux commented May 11, 2021

They're vue.js templates

@SouthMemory
Copy link
Author

They're vue.js templates

Thanks, but I still can not figure out how task status are updated dynamically, is it by ajax polling or websocket?

@binux
Copy link
Owner

binux commented May 11, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants