Coder Social home page Coder Social logo

Implement "Log" Component about zircon HOT 7 CLOSED

hexworks avatar hexworks commented on May 19, 2024 2
Implement "Log" Component

from zircon.

Comments (7)

William-Lake avatar William-Lake commented on May 19, 2024 2

Hi All! Just saw the post on /r/roguelikedev and am so excited to see this control in Zircon! I know I'm preaching to the choir here but, great work- on everything!

from zircon.

coldwarrl avatar coldwarrl commented on May 19, 2024

Would that log-component support scrolling ?

from zircon.

adam-arold avatar adam-arold commented on May 19, 2024

Yep, it will implement Scrollable so it will get the scroll behavior from the get-go but no scrollbars yet (we haven't implemented that component yet).

So basically there will be a binding between the log component and a List you supply an you can either scroll up-down programmatically (for example you can add a key listener to the ArrowUp and ArrowDown keys when the component when it is focused) but by default the last n elements are displayed.

Let's discuss this over our discord channel if you have any specific ideas!

from zircon.

coldwarrl avatar coldwarrl commented on May 19, 2024

I guess it makes sense (at least I want this for my game), to have the possibility to add different styles (e.g. color/underline (would work as link)). So instead of a simple List/collection, maybe having a small API to add log content would be better. After I got re-familiarized with Zircon again, @adam-arold I would discuss it with you, maybe I can then build a prototype :)...

from zircon.

adam-arold avatar adam-arold commented on May 19, 2024

Definitely a good idea! This was made for a Software Design course. Source is here.

I only perused it so it probably needs some improvement. I also think that for a preliminary implementation we'll do fine without a scrollbar.

from zircon.

adam-arold avatar adam-arold commented on May 19, 2024

@coldwarrl do you think you can give a story point estimate?

from zircon.

adam-arold avatar adam-arold commented on May 19, 2024

Thanks, you can now use it!

from zircon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.