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

adding a placeholder attribute to the "Table Summary" field in the toolbar #917

Open
cecilialam opened this issue May 20, 2013 · 2 comments
Labels

Comments

@cecilialam
Copy link
Contributor

Hi,
I am trying to add a placeholder attribute to the "Table Summary" field in the toolbar. I added the following to the aloha core javascript.

this.summary = AttributeField( {
            width : 275,
            name  : 'tableSummary',
            noTargetHighlight: true,
            scope: this.name + '.cell',
            placeholder: i18n.t("table.label.target")
} );

I stepped through the setPlaceholder function. There are no error on the script. However, I still do not see the placeholder attribute in the toolbar. Any idea? suggestions?

Thanks and regards
Cecilia

@evo42
Copy link
Member

evo42 commented May 22, 2013

this seems to be a litte bit tricky -- tried it, but was not really successful with my attempt. seems like that the placeholder attribute is not added / working with the sidebar editor at the moment.

@cecilialam
Copy link
Contributor Author

I tried adding value or tooltip. They don't work too.

              this.summary = AttributeField( {
            width : 275,
            name  : 'tableSummary',
            noTargetHighlight: true,
            scope: this.name + '.cell',
                        tooltip: i18n.t("table.label.target")
        } );

and

               this.summary = AttributeField( {
            width : 275,
            name  : 'tableSummary',
            noTargetHighlight: true,
            scope: this.name + '.cell',
                        value: i18n.t("table.label.target")
        } );

Is there any way to provide our users some hints on what the text field is for?
Any suggestion is appreciated.
Thanks and regards
Cecilia

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

No branches or pull requests

3 participants