Make buttons in a document BIG!

In building a dashboard (command center, if you will), I have a bunch of buttons and stats.

I’d love to make primary buttons BIG, like 2X bigger!

It could simply be made to respond to h1, h2, etc…

3 Likes

Well, you can add newlines and spaces to the label.

image

Not sure how to make the text larger though, didn’t find any hidden formula for that.

1 Like

Okay, with some hacks I managed to do this:

Referencing formatted text from cells in a button’s label sorta works. A wild guess it was!

5 Likes

WOAH!!! You’re like a Coda Wizard!!! So cool!!

ps. how did you add spaces in the label? Shit+enter doesn’t cut it.

In formula mode, shift+enter works for me. I’m on Windows though, maybe on Mac it’s different.

2 Likes

Awesome, it does work in formula mode.

How do you change the color? _Color doesnt’ seem to do anything…

Double-check. Should work, as you can see in my screenshot.

More documentation here:

2 Likes

I was wondering where you were getting your hacks from!

Awesome as always, thank youu!

1 Like

Just when I think I know Coda well, Paul teaches me something new :slight_smile:

12 Likes

@shishir
image


I’m just trying out different things, and 14 out of 15 times they work exactly as expected. That’s what I love about Coda the most.

Guess my full-stack software engineering background helps a lot. I’m just making assumptions about how Coda works under the hood, and most of the time the assumptions are correct.

There were hints of the existence of hidden formulas in the community before. This got me curious to find them all, so I dug into Coda’s source code. Then @Filmos and others expanded on that with some brilliant guides. That’s the Community for you :slight_smile:

4 Likes

That’s awesome that Coda has so many hidden layers. What’s yet to be found out, I wonder?

Very cool!

This is precisely the mark of a thoughtfully-designed system; it is capable of new behaviors, the likes of which the developers never anticipated or intended.

I believe Coda ALREADY supports innovative ideas, use case, and processes that have yet to be invented.

5 Likes

I think that this post also comes handy in context of this post:

Credits to: @Saul_MIND_Garcia

2 Likes

Here’s yet another trick with reusing Big Cell content in an unexpected place:

1 Like

@Paul_Danyliuk can i have a code on how to do this? or may be a sample doc

i really don’t understand how to link this text format

Hey @Korn_Tris .

@Breno_Nunes thanks very much. I can do it now

1 Like

In case anyone else stumbles across this thread, just wanted to add that Coda has since added a built-in function to change the size of your button. So you can now choose from small, medium, and large.

But kudos to @Paul_Danyliuk for the original creative solution :raised_hands:

Hey @Lena_Webster !

Would love to clarify quickly - this is not true for buttons within a column correct? This is only referring to Canvas based buttons?

Thanks!