Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select 2 infinite scroll or auto complete search for ref fields #95

Open
jaideepdas opened this issue May 10, 2014 · 4 comments
Open

select 2 infinite scroll or auto complete search for ref fields #95

jaideepdas opened this issue May 10, 2014 · 4 comments
Assignees
Milestone

Comments

@jaideepdas
Copy link

Ref field should be something like http://ivaynberg.github.io/select2/#infinite or searchable field. If the list size goes beyond 50 entries rest of the entries wont show up till you set limit param but thats could become a performance issue when loading the page.

@refack
Copy link
Member

refack commented May 10, 2014

There is a feature in development to allow autocomplete.
By adding socket: true to the field in the schema, we'll register a websocket to allow server quarrying.
You can enable it now by setting environment variable DEBUG=formage and setting a socketio instance on the registry (probably in app.js)

var server = http.createServer(app);
var socketio = require('socket.io');
var io = socketio.listen(server);

formage.init(app, express, models, {
    title: app.get('site') + ' Admin',
    username: registry.ADMIN.user,
    password: registry.ADMIN.password,
    socketio: socketio
});

@refack refack added this to the 2.7.x milestone May 10, 2014
@refack refack self-assigned this May 10, 2014
@jaideepdas
Copy link
Author

ok will give this a try thanks

On Sat, May 10, 2014 at 9:37 PM, Refael Ackermann
notifications@github.comwrote:

There is a feature in development to allow autocomplete.
By adding socket: true to the field in the schema, we'll register a
websocket to allow server quarrying.
You can enable it now by setting environment variable DEBUG=formage and
setting a socketio instance on the registry (probably in app.js)

var server = http.createServer(app);var socketio = require('socket.io');var io = socketio.listen(server);
formage.init(app, express, models, {
title: app.get('site') + ' Admin',
username: registry.ADMIN.user,
password: registry.ADMIN.password,
socketio: socketio});


Reply to this email directly or view it on GitHubhttps://github.com//issues/95#issuecomment-42746000
.

Have a nice day.

@jaideepdas
Copy link
Author

but as a option for people who don't want to use web sockets the infinite
scroll is a good option just a suggestion.

On Sat, May 10, 2014 at 11:42 PM, Jaideep Das jaideep.jdof@gmail.comwrote:

ok will give this a try thanks

On Sat, May 10, 2014 at 9:37 PM, Refael Ackermann <
notifications@github.com> wrote:

There is a feature in development to allow autocomplete.
By adding socket: true to the field in the schema, we'll register a
websocket to allow server quarrying.
You can enable it now by setting environment variable DEBUG=formage and
setting a socketio instance on the registry (probably in app.js)

var server = http.createServer(app);var socketio = require('socket.io');var io = socketio.listen(server);
formage.init(app, express, models, {
title: app.get('site') + ' Admin',
username: registry.ADMIN.user,
password: registry.ADMIN.password,
socketio: socketio});


Reply to this email directly or view it on GitHubhttps://github.com//issues/95#issuecomment-42746000
.

Have a nice day.

Have a nice day.

@refack
Copy link
Member

refack commented May 11, 2014

Infinite scroll will also require a dedicated server connection. Be it a websocket or a dedicated URL...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants