Giter VIP home page Giter VIP logo

angular-timeline's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-timeline's Issues

Fitting the timeline into a narrow sidebar

Great angular directive. Curious if there was a way to easily remove the badges in the center or otherwise make the timeline look better in a narrow sidebar. I've tried making the events show up on one side, but not having much luck. Is this function part of the directive?

Namespace directives

I recommend you namespace your directives and CSS:

  • The reduces potential conflicts with other libraries
  • This helps identify your own library components/directives
angular.module('angular-timeline').directive('rp-timeline', function() {... }
angular.module('angular-timeline').directive('rp-timeline-panel', function() { ... }

Note the additional hypens in np-timeline-panel

.rp-timeline {
  list-style: none;
  padding: 20px 0 20px;
  position: relative; 
}

Angular 1.3 suport

Hi, angular 1.3 is still suported?
because I get:
Unable to find suitable version for angular
when installing angular-timeline.

Thank you!

Error on $scope data changing

Hi,

When the data which the timeline is rendering is changed I get

Error: d[h].apply is not a function hf/this.$get</m.prototype.$broadcast@http://localhost:9885/Scripts/angular.min.js:136:426 hf/this.$get</m.prototype.$destroy@http://localhost:9885/Scripts/angular.min.js:132:362 Ce</<.compile/</<@http://localhost:9885/Scripts/angular.min.js:277:203 hf/this.$get</m.prototype.$watchCollection/<@http://localhost:9885/Scripts/angular.min.js:130:291 hf/this.$get</m.prototype.$digest@http://localhost:9885/Scripts/angular.min.js:131:354 hf/this.$get</m.prototype.$apply@http://localhost:9885/Scripts/angular.min.js:134:359 l@http://localhost:9885/Scripts/angular.min.js:86:325 M@http://localhost:9885/Scripts/angular.min.js:90:370 Rf/</x.onload@http://localhost:9885/Scripts/angular.min.js:91:394

I am simply calling (simplified for brevity)
$scope.timelineData = TimelineData.query()

one problem about docs

in 'Installation'

  <!-- view -->
  <timeline-event ng-repeat="event in events">
    <timeline-badge class="{{event.badgeClass}}">
      <i class="glyphicon {{event.badgeIconClass}}"></i>
    </timeline-badge>
    <timeline-panel class="{{event.badgeClass}}">
      <timeline-heading>
        <h4>{{event.title}}</h4>
      </timeline-heading>
      <p>{{event.content}}</p>
    </timeline-panel>
  </timeline-event>

the code above should be contained by

<timeline>
<--! code above-->
</timeline>

I think freshmen may be encounter problem when copying code from current docs

Use this plugin with Angular $translate

Thanks Robert for this plugin, I love it.

I wonder if there's any way to make it work with Angular Translate? I assume one does have to use $translate.instant in the controller and presumably ng-bind-html in the html, but that alone doesn't work. I couldn't figure out what exactly the problem is, does anyone know?

Adjust badge width and center?

Thanks for this great directive. I'm wondering if there's a way to make the badge on the center timeline a little wider(to fit more text) but still have it centered on the center line? I've figure out how to make it wider by just adjusting the "width" css property but can't seem to figure out the secret sauce to center it on the line. I tried messing with the "left" css property but that wasn't a perfect solution since it only worked for the current width of the browser. Every time I resized, it was off again. Thanks!

Here are the properties I was playing around with:

timeline li timeline-badge {
width: 50px;
left: 50%;
}

side="left" not working

Hi!

I am using angular-timeline 1.6.1.
Putting side="left" on the has no effect; the timeline is still rendered left-and-right (unless max-width 767px).

This is my markup:

<timeline>
    <timeline-event ng-repeat="event in events" side="left">
        <timeline-badge>...</timeline-badge>
        <timeline-panel>...</timeline-panel>
    </timeline-event>
</timeline>

Thanks,
Frank

ng-repeat with ng-click

The timline worked perfectly with JSON dataset passed to the timeline-node using ng-repeat.
However, ng-click is not working.
Is it possible to use ng-click without modifying the directives?

How can i force float right whatever the size/width ?

Hey,

Thanks for your lib.
When width is greater than 767px, a media-query center the timeline, and all elements are adjusting to the left or the right. How can i force the element to be in a column (whatever the width of the screen) the same way it is displayed in mobile device / "little screen" ?

Regards

Update version tags

Hey,

your bower.json has a version attribute that hast the valu 1.0. Bower ignores the version attribute anyway, so better remove it or keep updated.

Additionally, could you create version tags for the latest 1.2 release? 1.1 has no entry in the changelog, and that's the only currently available version in bower. The README seems to reflect 1.2 which is dev-master I guess?

Full Page

When using side left or side right the timeline should use the full width that it has available

left and right label for each node

Hello,

I was wondering if it is possible to display both labels on left and right side of a node at the same time?
This can be used when you have two storyboards and would like to show summary from both of them for each node.

Thanks

Limiting height of <ul> also limits height of vertical line

Hi,

Great library, very easy to use, thank you!

I'm trying to limit the height of the timeline on the page by setting the height and overflow: auto properties of the

    under the tag. This works apart from the vertical line separating the left and right side (and where the badges are display) is also set to the height of the
      so once you start scrolling the vertical line doesn't continue. Any suggestions?

      Thanks,

      Tom

Adding sense of elapsed time

This is great... but is there a way of adding a sense of elapsed time between entries?

For example.. larger gaps between events that occurred days apart and shorter gaps for events that occurred closer together?

Bower.json not containing CSS file // unnecessary dependencies

Hi Robert,

this is more a question about your bower.json...

"main" only specifies JS to be installed but does not contain any CSS. As a result, I have to add it manually to my index.html. If you add the CSS file to the "main" section, it'll be added automatically to my index.html. Unually this is "/dist/angular-timeline.css" then, since it is built from scss.

In addition, I am wondering why you have dependencies to "angular-bootstrap" and "angular-ui-router". As a result, I have these libraries automatically added to my index.html. Why are these required? The original Bootsnip at least doesn't.

Many thanks for making this available,
Frank

Can you make it compatible with Angular 1.4?

I'm having to use a resolution to angular 1.4.7 and angular-sanitize 1.4.7. It seems to work fine running 1.4.7. If it could be updated that would be great. Thanks!

I can make a PR changing the versions in bower.json if that would be helpful.

Not printing lines

Thank you so much for this great module! I'm having a problem with printing: everything looks correct in the browser, when I print a timeline (I have tried in both Firefox and IE11) the badges and panels show up, but the center line and the lines that connect each panel to its badge do not show up. Any thoughts on what can be done to fix this? Thanks.

Force/set panel alignment

Hi and thanks a lot for the lovely plugin.

I went through the docs and example, even the code, and I can't figure out how (and whether) it'd be possible to 'force' the alignment of the panel to be all to the left/right (as when used in a small column the panels are too narrow when alternating between left and right).

Can this be done?

Cheers!

Panel content fills only half the available space

Hello,
First of all - great work and I loved this. Just one issue for now... How do I fill up the whole content with text? It always only fills half of it - does not matter html content or simple text.

What changes need to be done in css or any other place to achieve this?

Here is a picture
tl-1
...

Right side tile border doesn't match left side

It seems that the z-index or something may be off. As you can see in the screenshot, the left-box and arrow pointing towards the timeline act as "one", while the right-side still has a border covering part of the arrow.
screen shot 2016-06-16 at 12 31 57 pm

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.