Skip to content

added template for list #173

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

added template for list #173

wants to merge 1 commit into from

Conversation

mayukh18
Copy link
Contributor

@mayukh18 mayukh18 commented Mar 1, 2017

PR for #159
Followed prevalent code structure.

@mayukh18
Copy link
Contributor Author

Hey @swapagarwal have you looked into this?

Copy link
Owner

@swapagarwal swapagarwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a (current) module to test this on. Any ideas?

def add_element(self, title='', image_url='', subtitle='', buttons=[], default_action={}):
element = {}
element['title'] = title[:TITLE_CHARACTER_LIMIT]
# won't render without an image_url
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's only for the first item right, and when it's not compact.

TITLE_CHARACTER_LIMIT = 80
SUBTITLE_CHARACTER_LIMIT = 80
BUTTON_TITLE_CHARACTER_LIMIT = 20
BUTTON_LIMIT = 3
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a limit of 1. Can you check?

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

Successfully merging this pull request may close these issues.

2 participants