systemapic / systemapic.js

Systemapic Javascript API
https://systemapic.com
0 stars 3 forks source link

Project title user count features #156

Closed jorgenevil closed 8 years ago

jorgenevil commented 8 years ago

screen shot 2016-02-24 at 3 51 41 pm

knutole commented 8 years ago

Yes, cool. This could work:

if (project.isEditor()) {
  // logged in user is editor of project
}
knutole commented 8 years ago

@jorgenevil This number needs to be updated after adding more people to project. Best would be to use a listener.

We can close this issue afterwards.

IgorZiegler commented 8 years ago

@knutole @jorgenevil what does mean Give basic information on hover ? Is it mean that when i click on public project it should so something?

knutole commented 8 years ago

@IgorZiegler

Hover - means when you hold the mouspointer over an area (but not clicking)...

So "give basic info on hover" means simply when hovering over the cirle with (42) (see image above), and tooltip message should pop up say, "The project is currently shared with 42 people."

For hovering, see how it's done with the other hover's in project list.

knutole commented 8 years ago

@IgorZiegler Nice.

I see you've added callbacks, etc... As mentioned above, the best way would be to do this with listeners. Meaning, that chrome.projects.js listens for projectUpdated (which you must fire after updating), and THEN it can update the list... We want to move towards implementing more event listeners, so it would be better to do it that was. (See top of chrome.js for example of listeners.)

hover_user