batman.js is an MVC framework for building rich single-page browser applications. It is written in CoffeeScript and its API is developed with CoffeeScript in mind, but of course you can use plain old JavaScript too.
Questions tagged [batman.js]
50 questions
1
vote
1 answer
Nested models not created as batman objects
Given the following models with one-to-many relationship:
class App.Post extends Batman.Model
@hasMany 'comments'
class App.Comment extends Batman.Model
@belongsTo 'post'
My comments are included in the JSON of the post from the backend. Since…

Raymundus
- 2,173
- 1
- 20
- 35
1
vote
1 answer
Batman.js model encoding issue
I'm running into an interesting issue with a complex model association.
I have a Project, which has many Tasks, as well as a sole Task that it derives it's own information from. (Tasks can be converted to Projects to embed additional Tasks…

tylerkern
- 121
- 9
1
vote
1 answer
Is it possible to use Batman.js with cordova?
I can't get it to work, and I think it is due to
Unfortunately, due to awesome browser security things, you can't run
index.html directly from the directory. You can use literally any
server mechanism as long as you're running the app from…

Pedro Bernardes
- 706
- 1
- 8
- 20
1
vote
1 answer
Filtering data-foreach rendering view with option dropdown, BatmanJS
I am just trying to manipulate the table populated by Batman JS to filter out entries with a dropdown option box.
(html view code)
1
vote
1 answer
Benefits of batman.js in angular.js?
I am planning to start a new complex project with ruby on rails, and I am currently thinking of which frontend-framework to use. I have never used one before.
Reading the docs, batman.js becomes really interesting. I would love to do things like…

Toni
- 1,593
- 1
- 11
- 21
1
vote
1 answer
How do I bind multiple classes in batman.js?
I am building a Dashings dashboard and using font-awesome to display icons in a widget. I am trying to bind a dynamic class and a static class to one tag in the html such as
but obviously this isn't…

Soler
- 119
- 1
- 7
1
vote
1 answer
'data-renderif' in Batman.js
What exactly does the data-renderif attribute do with Batman.js?
I initially thought that it would render the DOM node only if the attribute value would be true. But then there's data-insertif that does that as expected.

Gautham Badhrinathan
- 2,377
- 3
- 20
- 30
1
vote
1 answer
Batmanjs internationalization
I'm trying to add translation to my batmanjs app but there are no tutorials or documentation available on the subject. Do you guys know where we can find any resource on the subject?
Thanks

yanovitchsky
- 21
- 4
1
vote
1 answer
How to implement navigation menu in batmanjs
I'm trying to build a navigation menu which current navigation item get highlighted according to the current controller action; but I can't find anything tells me how to do it!!
How can I define my navigation structure and mapped to my controllers?…

Anas Aswad
- 119
- 1
- 1
- 5
1
vote
0 answers
How do you load collections that live on a rails' action besides index?
Batmanjs sample project Classifieds used to do this by passing a :url option to override the default resource name, but this has now been deprecated.
Classifieds.Ad.load {url: "/ads/search.json?q=#{params.q}"}, (error, records) =>
throw…

Ryan Romanchuk
- 10,819
- 6
- 37
- 41
1
vote
1 answer
Unit Testing batman.js Apps
Do you have any tips on how to unit test batman.js applications? I could not find any hints in the documentation. Which testing tools do you use? Any sample would be highly appreciated.

fourcube
- 762
- 3
- 10
1
vote
1 answer
BatmanJS and Rails3: get object attribute in controller
I assumed this will work in my BatmanJS Controller:
project = Project.find parseInt(params.id, 10), (err) ->
throw err if err
@set 'project', project
**@set 'owner_id', project.get("owner_id")**
but project.get("owner_id") is always undefined.…

adrian
- 161
- 7
1
vote
1 answer
0
votes
2 answers
limiting results of foreach (getting only 3 results) using polymer
I'm trying to limit foreach item. here it is my source :
FAILED
- …

yassinho
- 21
- 1
- 6
0
votes
0 answers
Dashing framework: defer rendering until DOM is loaded
---edit---
I asked this question over on the project's Github, and it's been indicated that they're not set up to do what I want: https://github.com/Shopify/dashing/issues/617#issuecomment-142762194
You can't really do that with the DOM, some…

laffoyb
- 1,540
- 3
- 22
- 35