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

[Proposal] CSS needs a top selector #20

Open
ramezrafla opened this issue Feb 15, 2017 · 0 comments
Open

[Proposal] CSS needs a top selector #20

ramezrafla opened this issue Feb 15, 2017 · 0 comments

Comments

@ramezrafla
Copy link

Right now the CSS file assumes you have only SocialCalc (or at least majorly SocialCalc) in your app. We need to add SocialCalc-specific class the container:

For example, start with:

<div id="mySheet"></div>

And then call

var socialCalcControl = new SocialCalc.SpreadsheetControl()
socialCalcControl.InitializeSpreadsheetControl(document.getElementById('mySheet'));
SocialCalc.SetTab("edit");

Which would add class sheet to that div

<div id="mySheet" class="sheet"></div>

So the CSS file needs to have all selectors preceded with .sheet (or something constant)

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

No branches or pull requests

1 participant