GithubHelp home page GithubHelp logo

Options usage about ionic-calendar HOT 12 CLOSED

twinssbc avatar twinssbc commented on July 29, 2024
Options usage

from ionic-calendar.

Comments (12)

twinssbc avatar twinssbc commented on July 29, 2024

@danny-36 You can refer to the demo page.

from ionic-calendar.

danny-36 avatar danny-36 commented on July 29, 2024

for example how can I set "allDayLabel" from my template?

from ionic-calendar.

twinssbc avatar twinssbc commented on July 29, 2024

@danny-36 You can set the "allDayLabel" like below.

<calendar ng-model="calendar.currentDate" calendar-mode="calendar.mode" event-source="calendar.eventSource"
      range-changed="reloadSource(startTime, endTime)"
      event-selected="onEventSelected(event)" title-changed="onViewTitleChanged(title)"
      time-selected="onTimeSelected(selectedTime)" all-day-label="allDay"></calendar>

from ionic-calendar.

danny-36 avatar danny-36 commented on July 29, 2024

doesn' t work. Can I set from my controller?

from ionic-calendar.

twinssbc avatar twinssbc commented on July 29, 2024

No, you can't, the option needs to be declared in the html.

from ionic-calendar.

danny-36 avatar danny-36 commented on July 29, 2024

this is my template.

If I click on a all day event the label show is "all day" not "Tutto il giorno"

from ionic-calendar.

twinssbc avatar twinssbc commented on July 29, 2024

Ah, ok, the all-day-label option only applies to week view and day view right now. I will make it work for month view.

from ionic-calendar.

danny-36 avatar danny-36 commented on July 29, 2024

screenshot 11

from ionic-calendar.

twinssbc avatar twinssbc commented on July 29, 2024

You need to adjust the width of the first column to fit your text. For example,

.calendar-hour-column, .weekview-allday-label, .dayview-allday-label {
    width: 100px;
}

.weekview-allday-content-wrapper, .dayview-allday-content-wrapper {
    margin-left: 100px;
}

from ionic-calendar.

danny-36 avatar danny-36 commented on July 29, 2024

It seems more a problem of line-height

from ionic-calendar.

twinssbc avatar twinssbc commented on July 29, 2024

Yes, you can also adjust line-height if you want to wrap the text into multiple lines.

from ionic-calendar.

danny-36 avatar danny-36 commented on July 29, 2024

I added this:

.calendar-hour-column, .weekview-allday-label, .dayview-allday-label {
  line-height: normal;
}

and works! thanks.

from ionic-calendar.

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.